SetSocketOption's KeepAlive timeout?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wencheng Magiya

    #1

    SetSocketOption's KeepAlive timeout?

    By setting
    socket.SetSocke tOption(SocketO ptionLevel.Sock et,SocketOption Name.KeepAlive,
    1 ) can tell the socket to use keep-alives. But anybody know how to set the
    timeout for the keep-alive without changing the registry?

    Best Regards,
    Wencheng Magiya


  • Supra

    #2
    Re: SetSocketOption 's KeepAlive timeout?

    use sleep

    Wencheng Magiya wrote:
    [color=blue]
    >By setting
    >socket.SetSock etOption(Socket OptionLevel.Soc ket,SocketOptio nName.KeepAlive ,
    >1 ) can tell the socket to use keep-alives. But anybody know how to set the
    >timeout for the keep-alive without changing the registry?
    >
    >Best Regards,
    >Wencheng Magiya
    >
    >
    >
    >[/color]

    Comment

    • gregory_may

      #3
      Re: SetSocketOption 's KeepAlive timeout?

      What happens when the socket dies? Exception? Very cool.

      "Wencheng Magiya" <2ioh7zf02@snea kemail.com> wrote in message
      news:OKuLqkhqFH A.3644@TK2MSFTN GP10.phx.gbl...[color=blue]
      > By setting
      > socket.SetSocke tOption(SocketO ptionLevel.Sock et,SocketOption Name.KeepAlive,
      > 1 ) can tell the socket to use keep-alives. But anybody know how to set
      > the timeout for the keep-alive without changing the registry?
      >
      > Best Regards,
      > Wencheng Magiya
      >[/color]


      Comment

      Working...