lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Title: RE: Question about luasocket-2.0-alpha and udp packet size.

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.



- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.