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

FG via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 6 04:18:14 PST 2015


On 2015-02-06 at 05:17, Gan wrote:
> Oh sweet. Though if one message length is off by even 1 byte, then all future messages get corrupted?

Yes, but you can easily detect that by adding a magic number and packet checksum to the header.


More information about the Digitalmars-d-learn mailing list