Click here to Skip to main content
15,888,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I got a strange issue with CAsyncSocket. If I connect to a server and I do not do a "send" or something, I can not seem to connect successfully because I think on my side, I will not send a "SYNC" or something. THis seems to be something that is sent in the lower layers of the TCPIP protocol which I do not control directly. Am I missing some setting for the socket itself? If I do a call to "Send", then it is OK. If not, I will just get cut off.

Dont know if anyone had had anything similar.

Thanks in advance.

Stan the man
Posted

1 solution

You might be looking for SO_KEEPALIVE

http://msdn.microsoft.com/en-us/library/1s9cycf8(v=vs.71).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900