Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: non-blocking accept on sockets Message-ID: <12708@mimsy.UUCP> Date: 28 Jul 88 02:03:12 GMT References: <354@litp.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 In article <354@litp.UUCP> ratuld@litp.UUCP (Jean DERATULD p4055) writes: >... The documentation on sockets says that there >is some flag to have a blocking or non-blocking "accept" on sockets >(the doc says about a SS_NBIO flag). The default is blocking sockets. >Nothing is said about how to set it locally .... The same way as any other non-blocking or no-delay I/O: either int on = 1, err; err = ioctl(fd, FIONBIO, &on); or err = fcntl(fd, F_SETFL, FNDELAY); -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris