Hi Wessel
Looks like either your client or server application is not closing its
socket properly. You'd have to post a working sample for anyone to
examine why, though.
private System.Net.Sockets.TcpClient myClient;
private System.Net.Sockets.NetworkStream myStream;
public TCPClientDriver(string Address, int PortNum)
{
string fnName = "Constructor";
LogDebug(fnName, "Attempting to create and open TCP client");
try
{
myClient = new System.Net.Sockets.TcpClient(Address, PortNum);
myStream = myClient.GetStream();
LogDebug(fnName, "Success");
InitializedOK = true;
}
catch(Exception e)
{
WinsockError = e.Message;
LogDebug(fnName, "Failed");
LogException(fnName, e);
}
}//public TCPClientDriver(string Address, int PortNum)
Ive disabled lingeroptions.
In a normal scenario, why change lingeroptions?
Only in a desperate random attempt to get the socket to close fully for
debug purposes.