Trying to make a TCP server, client connects and disconnects immediately

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 5 17:02:17 PST 2015


On Friday, 6 February 2015 at 00:50:43 UTC, Gan wrote:
> How can you distinguish between different packets that get 
> sent? Won't they all be merged to a giant blob of data?

Yeah, that's normal in TCP though, because it is a stream 
oriented protocol. You could add stuff to your data indicating 
message length though.


More information about the Digitalmars-d-learn mailing list