V
vooose
Consider a class MyTcpClient that : from TcpClient...
MyTcpClient tcpClient = new MyTcpClient();
tcpClient.Client = tcpListener.AcceptSocket();
tcpClient.SendTimeout = 5000; //5 seconds
//now pull the cable out the back of the computer the connection was
just made to
tcpClient.Write(something);
After you pull the cable out and waiting longer than 5 seconds, I don't
get any sort of exception resulting from the above line. I am not sure
if SendTimeout is the property to set for what I am trying to achieve.
The end result I'm after is
'After the network layer sends a packet, if I havent received the TCP
ACK for that packet after 5 seconds, then disconnect'
Not sure if this is possible with TcpClient/Sockets in c#?
MyTcpClient tcpClient = new MyTcpClient();
tcpClient.Client = tcpListener.AcceptSocket();
tcpClient.SendTimeout = 5000; //5 seconds
//now pull the cable out the back of the computer the connection was
just made to
tcpClient.Write(something);
After you pull the cable out and waiting longer than 5 seconds, I don't
get any sort of exception resulting from the above line. I am not sure
if SendTimeout is the property to set for what I am trying to achieve.
The end result I'm after is
'After the network layer sends a packet, if I havent received the TCP
ACK for that packet after 5 seconds, then disconnect'
Not sure if this is possible with TcpClient/Sockets in c#?