I have a socket configured to accept TCP connections with
socket(AF_INET, SOCK_STREAM, 0)
and then I call bind() , listen() and accept()
The problem is that when I call listen (), it causes the SYN / ACK packet to be sent to the client. I thought this would not happen until I call accept (), but worse than that, the SYN / ACK packet does not have a confirmation incremented by one.
What causes this, and how can I fix it?
thanks
As a side note - does it matter that my TCP connection is asymmetric?
Derek source share