You could use a custom small header on every packet you send, i.e. first 2-4 
bytes being the packet size, so when you receive data you add to a buffer 
and check if it reached the total size of the packet. If it has not, do 
nothing, if it has, complete the buffer and send the data packet to a 
processing routine. If the last data amount received exceeds the packet 
lenght you specified in the header, you can cut it and move it into a new 
clean buffer. I have some sources for that if you need

----- Original Message ----- 
From: "Igor Pokorny" <[EMAIL PROTECTED]>
To: <twsocket@elists.org>
Sent: Monday, August 15, 2005 00:50
Subject: [twsocket] Twsocketserver


> Hi guys,
>
> I do have a realtime application communicates to one side by USB and to
> the other acts as http server and/or TCPserver. I am trying to use ICS
> http server and everything seems OK. I use another free component of TCP
> server that has to run in different thread because of not event driven.
>  Synchronizing makes me a lot of problems so I decided to use TCP
> server from ICS. My TCP communication isn't line oriented. Could I find
> any documentation to Twsocketserver or some example how to handle binary
> and maybe fragmented packets?  I am already late with my project so I
> would prefer quick, maybe dirty help :-(
>
> Thanks in advance
>
> Igor
> -- 
> 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
>
> 

-- 
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

Reply via email to