Hello Philip, > TCP server this connects to sends me a set size data block
When you receive the size data block, then allocate memory for it, start concatenating data packets until you have received the exact size of the data. You have to save in a variable what is received, and what is left, to not receive more than the size. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, March 22, 2006, 20:01, Philip Colley wrote: > Hi > I've been using a TWSocket component successfully in one of my home > automation plug-in applications for several weeks now by using line mode > with a #13 line end. This was really easy to set up and get working. > Now I want to use the TWSocket in another plug-in application, however the > TCP server this connects to sends me a set size data block, it always starts > with a "MPSEND" but ends with a checksum value. Could you tell me the best > way to deal with this? > Phil Colley -- 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