D
Darrell Sparti, MCSD
I'm writing a remote client in C# that connects to a remote connection
manager via a TcpClient. The connection and handshake work perfectly.
I must then remain connected and respond to the connection manager's
request. I've tried calling read in a loop right after the handshake
but the first time the socket's read method is called, the socket
reports it's disconnected. I've created a TcpClientEx class inheriting
from the TcpClient and set the KeepAlive socket option but that didn't
change anything. I know the connection manager isn't closing the
connection. How can I keep the connection alive and waiting for
commands? Thanks in advance for your help!
manager via a TcpClient. The connection and handshake work perfectly.
I must then remain connected and respond to the connection manager's
request. I've tried calling read in a loop right after the handshake
but the first time the socket's read method is called, the socket
reports it's disconnected. I've created a TcpClientEx class inheriting
from the TcpClient and set the KeepAlive socket option but that didn't
change anything. I know the connection manager isn't closing the
connection. How can I keep the connection alive and waiting for
commands? Thanks in advance for your help!