That would depend on how the socket is opened. Stream will send a bunch of bytes (and on POSE it acts a little differently - do a search on the archives - I think it came up again about a month ago). UDP are limited to 1536 for the buffer size (or an error will occur) and less may be sent in one burst. I seem to have a remembrance of 536 bytes is normal, but you should not program to that.
Buflen is a UINT16, so obviously you can not specify more than 64k. But you will never get that much sent in one NetLibSend call/burst. You should assume that it will send any number and continue to call NetLibSend till the buffer is fully gone. I haven't experimented with the Palm Raw Socket mode, so I can't provide insight on that. By the way, this seems to be the standard for stream sockets no matter what platform you use, even Windows. -------------------------------------------------------------------- Gary Gorsline Easy Business Software ========================== End of Message ========================== ----- Original Message ----- From: "Arijit Das" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 7:46 PM Subject: BYTE LIMIT on NetLibSend > > > Palm Dev, > > I am sending bytes using "NetLibSend", > does anybody know the limit on how many bytes > I can send at any one time ? > > > Regards, > -- > Arijit Das > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/