Internet communication problem (UDP)
Posted on 2001-06-03
I'm currently developing a program that is suppose to
receive UDP packets.
I've successfully managed to send and receive single
UDP packets, however I need to receive a "stream" type
of udp packets. Example:
A server sends X UDP packets to me, how do I know when
the server is done sending? (I don't know how many packets the server will send and there is NO data within
the packet that will tell me that!)
The protocol that the server is using simply says:
.... but for now you just need to test for the end of the stream when you are reading in the constent string.
So my question is, how do i "test" for the end of a UDP stream? My socket is non-blocking (async)
To accept an answer I need source code, if component then there must be source to that too!