Setting Time-Out :: Winsock

This is a discussion on Setting Time-Out :: Winsock within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I would like to know if it is possible to increase and/or decrease the time-out (wait time) on 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, 11:43 AM
  2. How to get current time
    By tsubasa in forum C Programming
    Replies: 3
    Last Post: 05-01-2009, 03: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, 02:08 AM
  5. Time Setting
    By MethodMan in forum Tech Board
    Replies: 2
    Last Post: 12-30-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21