Article View: comp.os.linux.networking
Article #812Re: non-blocking accept()?
From: Mike Harrelson
Date: Thu, 14 May 1998 00:00
Date: Thu, 14 May 1998 00:00
20 lines
1094 bytes
1094 bytes
In article <355A00FE.1354F22D@stud1.tuwien.ac.at>, Manfred Hallas <e9226266@stud1.tuwien.ac.at> wrote: >Hi folks! > >How can I make the following C command > > int accept (int s, struct sockaddr *addr, int *addrlen) > >(who accept a connection on a socket) non-blocking under >Linux with gcc??? >I think I have to mark the socket s non-blocking, but I don't know >how :-((( and the SO_SNDLOWAT at setsockopt() doesn't >exist under Linux... > >I am VERY grateful for each hint Try setting the O_NDELAY attribute for s using the fcntl() call. -- mikeh
Technical Details
Message-ID:
<6jeb3h$8v6@gcedunet.gac.peachnet.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<355A00FE.1354F22D@stud1.tuwien.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b4153cb341347981 X-Google-Attributes: gid11318c,public X-Google-Thread: 10669a,b4153cb341347981 X-Google-Attributes: gid10669a,public From: mikeh@gcedunet.gac.peachnet.edu (Mike Harrelson) Subject: Re: non-blocking accept()? Date: 1998/05/14 Message-ID: <6jeb3h$8v6@gcedunet.gac.peachnet.edu> X-Deja-AN: 353179349 References: <355A00FE.1354F22D@stud1.tuwien.ac.at> Organization: GCEduNet Newsgroups: comp.os.linux.networking,gnu.gcc.help