Thread: Non-blocking connect()?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Code:
    fcntl(sockfd, F_SETFL, O_NONBLOCK);

  2. #2
    Registered User
    Join Date
    May 2008
    Location
    Australia
    Posts
    230
    Quote Originally Posted by bithub View Post
    Code:
    fcntl(sockfd, F_SETFL, O_NONBLOCK);
    Is that not a linux thing? I don't see fcntl() mentioned on MSDN. When I google for it, the examples say include "fcntl.h", the compiler seems to acknowledge the file is there (because it doesn't say file not found) but it still says

    Code:
    'fcntl': identifier not found
    'F_SETFL' : undeclared identifier
    'O_NONBLOCK' : undeclared identifier
    When I try and compile if my program calls fcntl().
    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to initialize a non blocking socket using only winsock library
    By *DEAD* in forum Networking/Device Communication
    Replies: 4
    Last Post: 01-18-2008, 07:03 AM
  2. connect() function, strange error
    By Mr_Miguel in forum C Programming
    Replies: 1
    Last Post: 12-12-2006, 06:51 PM
  3. connect timeout
    By X PaYnE X in forum Networking/Device Communication
    Replies: 8
    Last Post: 05-14-2005, 09:30 PM
  4. Client timed-out once on connect(), can never connect() again
    By registering in forum Networking/Device Communication
    Replies: 6
    Last Post: 10-28-2003, 03:46 PM
  5. Advanced connect four game
    By Ion Blade in forum C++ Programming
    Replies: 10
    Last Post: 07-28-2002, 07:52 AM