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

466 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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.