I want to receive data from a client. To be precise, all data the client sends. But then I want to send some data back so I don’t want to close the connection.
Maybe it’s already to late in night (at least in Germany) – how can I do this? Usually I would say I’d put a semicolon or something like that in the end, but protocols like HTTP also don’t do that (or do they?). How does it work there?
Thanks, eWolf
With the HTTP protocol, the Content-Length header is used to identify how much data there is in advance.
You could do something similar in your protocol.