Thread: Setting Time-Out :: Winsock

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348

    Setting Time-Out :: Winsock

    Hi.

    I would like to know if it is possible to increase and/or decrease the time-out (wait time) on winsock functions such as WSAConnect, WSARecv, WSASend, etc.

    Here is one problem that applies to this questions. The example is connect. I believe WSAConnect has a five second or so time-out. During that time, I would like to be able to completely stop the connection attempt if it is still in progress.

    Thanks,
    Kuphryn

  2. #2
    Unregistered
    Guest
    use setsockopt(...) for recv and send. I dont know offhand what the procedure is for connnect().

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Nice!

    Okay. Thanks.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. How to get current time
    By tsubasa in forum C Programming
    Replies: 3
    Last Post: 05-01-2009, 02:03 AM
  3. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  4. Dumb question time - Winsock & accept()
    By jdinger in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-11-2005, 01:08 AM
  5. Time Setting
    By MethodMan in forum Tech Board
    Replies: 2
    Last Post: 12-30-2002, 10:01 PM