BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
365 stars 108 forks source link

Multi-byte delimiter support #19

Open BrandonPotter opened 7 years ago

BrandonPotter commented 7 years ago

Had a situation the other day where XML messages were coming across a TCP connection.

Thought it would be nice to be able to specify a multi-byte delimiter to split messages, for example '/whatever>' could be the end of a message.

Adding an issue so I don't forget the next time I have a few hours to implement or if someone else wants to take a shot at it.

fabs-rodriguez commented 6 years ago

This would be great. I am receiving data from a GPS tracker over TCP with messages ending in a 2 byte delimeter 0x0D 0x0A (carriage return and line feed). If memory servers, the NMEA protocol also has the same stop bytes...

svantevit commented 5 years ago

The PLC I'm listening to also uses 0x0D0A as delimiter. Would be great to add multi-byte delimiter support.