I
Ignacio Machin \( .NET/ C# MVP \)
Hi,
Why you want this?
I dont remember the last time I had to go so especific to establish a TCP
connection, 99.999% of the time you have enough by using TCPClient
My suggestion is to look into the unmanaged world. These options are not
used that often and you will find more info about it from Unix programming
(I think)
semedao said:Hi,
I want to implement keepalive on connected socket between 2 machines ,
that can be behind NAT.
Why you want this?
I dont remember the last time I had to go so especific to establish a TCP
connection, 99.999% of the time you have enough by using TCPClient
I saw the
SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1)
and the IOControlCode.KeepAliveValues options.
But I didn't found article that explain how to use it.
My suggestion is to look into the unmanaged world. These options are not
used that often and you will find more info about it from Unix programming
(I think)