Where to get the keep-alive specification on sockets in .NET?

I am trying to figure out how keep-alive works in .NET, but the link from here does not work. Can someone post a spec link?

What I'm looking for:

  • I would like to know how often keep-alive packets are sent.

  • Do I need to install KeepAlive with the command:

    s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true);

    only on the server side or should the client even set this flag?

+3
source share
2 answers

Not sure if this is what you are looking for, but SocketOptionNamethere is a member in the element KeepAlive, as you can see here .

:

s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true);
+6

keepalives. : - , "", , keepalive. , keepalive , .

keepalive, , ( . ).

, " " Windows 2000. . keepalive (. ).

+2
source

Source: https://habr.com/ru/post/1756355/


All Articles