This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use TCP_TYPE_KEEP_ALIVE or how to hold TCP connection?

I am writing simple program to control device through TCP port. Program was working but connection close automatically after time out. To hold the connection I try to use TCP_TYPE_KEEP_ALIVE flag, but it does not work.
Did someone TCP connection that stay open until client send requests?