Thread: Socket O_NONBLOCK

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    Socket O_NONBLOCK

    Hi,

    How can I prevent that accept blocks?
    I tried already
    fcntl(s,F_SETblabla,O_NONBLOCK)
    to set a flag (do not know the exact syntax right now), but it won't run. I tried also select, but this doesn't run (despite correct syntax (?)). Anyone an idea?

    Greetings, Katzenfisch

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Search engines are your friend.

    Here is one example.

    Another usefull link may be this one...

    I'll stop there.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  2. Socket Help - Multiple Clients
    By project95talon in forum C Programming
    Replies: 5
    Last Post: 11-17-2005, 02:51 AM
  3. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 10:33 AM
  4. problem closing socket
    By Wisefool in forum Networking/Device Communication
    Replies: 2
    Last Post: 10-29-2003, 12:19 PM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM