I\'m writing an Interface under Linux which gets Data from a TCP socket. The user provides a Buffer in which the received Data is stored. If the provided Buffer is to small
There is no knowledge at TCP level about what constitutes an application protocol message. There are, however, two most common ways to delimit messages in a TCP stream:
In this light, a generic TCP reader should provide two reading functions to be universally useful:
A design similar to Tornado IOStream reading functions would do.