|
I've tried it with a buffer size of 1500 bytes. It works between linux machines just fine.
Why does this buffer need to be declared statically anyway? The sendto/receivefrom calls have size parameters, and the underlying socket calls return the amount they received/sent from/to the network stack?
It seems to me that the application should be responsible for making the "safe/unsafe" determination anyway.
Either way, I can make it do what I need to, so thanks for your hard work and the clarification!
-joe
-----Original Message-----
From: Diego Nehab [mailto:diego@tecgraf.puc-rio.br]
Sent: Friday, February 06, 2004 12:04 PM
To: Lua list
Subject: RE: Question about luasocket-2.0-alpha and udp packet size.
Hi,
> In my use of udp, I have other mechanisms to determine if the network/stack
> truncated my packets so I'm more interested if I'm gonna break some
> underlying assumption inside LuaSocket by changing the packetsize.
>
> Hoping the answer is no... Then I'll take responsibility for the receiver.
Doesn't break anything to change the define, although I have never
tried it. However, it is so uncommon (and unsafe) that you actually need
to send a bigger packet that I don't think I will make this a run-time
option. :o/
[]s,
Diego.