Link to home
Start Free TrialLog in
Avatar of chivo
chivo

asked on

TCP datastream message length

Hi,

I am programming a TCP Client in VC++6.0 (using WinSock DLL 2.0, stream socket) that recieves messages having different lengths from the Server. The message length is not included in the message and no special end-character is used. Nevertheless, I need to know where one message stops and the next message begins.

How can I do this ?
Thanxs.
ASKER CERTIFIED SOLUTION
Avatar of MichaelS
MichaelS

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ufolk123
ufolk123

Hi chivo,
It is only possible if you use UDP.
Actually you can implement some protocol in which using UDP you can do retransmisions and stuff to ensure relability at a user level.This might be combursome but is only solution if you dso not want to put length headers in your data packets.