Jonathan Dumaresq wrote: >> The only reliable way is to read data until no more is available (The >> component is asynchronous and will /not/ block on the Receive call. >> It will >> simply returns the number of available bytes or -1 if no data >> available (0 is returned for a TCP connection when remote has close >> the connection). > > So the way i do it in the event, is ok ? i just have to put 65535 in > the count size if i set the bufsize to 65535 ? > > >> You have to set BufSize at least equal to the largest datagram you >> handle. > > 65535 is it the maximum for upd datagram ? I think yes but just to be > sure.
Winsock fragmentation will probably prevent receiving such large packets in a single Receive-call, data will probably be fragmented into MTU fragments (AFAIR?). --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > regards > > Jonathan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
