UDP is as his name say a datagram protocol. There is nothing in UDP itself which relate one packet to another. You have to design that at the application level if you need it. TWSocket does nothing with your data, just pass it along. The largest packet you can send with UDP is governed in ICS by the BufSize property. You may enlarge it if it is needed by your application. Note that all transport layers may not be able to transmit large packet, specially over internet.

Also, don't forget UDP is by design an unreliable protocol. This is how TCP/IP has been designed and is not related to ICS capabilities. See "TCP/UDP primer" document available at my website on the support page and also in the wiki.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


----- Original Message ----- From: "Dave Keltz" <dave.ke...@gmail.com>
To: <twsocket@elists.org>
Sent: Sunday, January 10, 2010 4:46 PM
Subject: [twsocket] Concatenate multiple UDP packets


Hello,

I am using a combination of the SendStr & ReceiveStr functions to send commands to a remote server and display the responses from the server in a RichEdit control and everything seems to work fine as long as the information that is received comes back in one packet however if the information comes back in multiple packets only the first packet in the series is displayed in the RichEdit control so I was wondering how I might concatenate the packets that are received so they are all shown at the same time. The packets are sent/received via UDP if that matters and wireshark reveals that each packet in the series is terminated with the 0A (or #10) character but there doesn't seem to be any way to tell the difference between the first packet in the series and the last packet because they all end with 0A so how could this be done.

Thanks,
Dave
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to