CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    815

    setsockopt - keep alive

    Hi,

    I would like to use setsockopt with the SO_KEEPALIVE parameter
    What I can't find is how I set the following:
    1. How often to send the keep alive message from the client to server
    2. Timeout - defining after how much time without keep alive message the server can assume connection from client is broken

    Thanks
    Avi

  2. #2
    Join Date
    Feb 2005
    Location
    Pune (India)
    Posts
    644

    Thumbs up Re: setsockopt - keep alive

    Hi,

    check WSAIoctl() API. and SIO_KEEPALIVE_VALS Control Code.


    -Anant
    "Devise the simplest possible solution that solves the problems"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured