Search code examples
vb6tcpend-of-line

How do I stop VB6 Winsock from sending an end of stream byte?


How do I stop VB6 Winsock from sending an end of stream byte? It sends a 0 after each message, and it is messing with my code.


Solution

  • The only bytes you receive are the ones that are sent. TCP/IP will not add extra bytes. Additionally, in TCP/IP, the "end of the stream" is not the same as the end of a message. The stream never ends unless the connection is broken.

    If you can post some code, we can get to the bottom on the problem.