Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!utcsri!uthub!ecf!me!radio!brian From: brian@radio.UUCP Newsgroups: comp.unix.wizards Subject: Non-blocking accept(2) calls Message-ID: <479@radio.toronto.edu> Date: Wed, 2-Sep-87 01:11:04 EDT Article-I.D.: radio.479 Posted: Wed Sep 2 01:11:04 1987 Date-Received: Fri, 4-Sep-87 06:38:12 EDT Reply-To: brian@radio.toronto.edu.UUCP (Brian Glendenning) Organization: Radio Astronomy, Dept. of Astronomy, U. of Toronto, Canada. Lines: 19 Keywords: socket non-blocking BSD The following is probably very simple, but darned if I can find it in the manuals :-( I am writing a graphics "server" on our Sun (3/180, SunOs 3.4=BSD 4.2), which I am implementing through socket i/o. When the server is not connected I would like to poll accept(2) periodically looking for new connections. It should be non-blocking so that it doesn't adversely affect screen activity. So my question is - how do I make accept non-blocking? I know it can be done. I'm quite happy with read/write being blocking, although if they must also be non-blocking that probably wouldn't be a hardship, although my preference would be to leave them blocking. If it matters I'm writing the application under the SunView windowing system. Thanks. -- Brian Glendenning UUCP - {allegra,decvax,pyramid}!utgpu!radio!brian +1 (416) 978-5558 BITNET - glendenn@utorphys.bitnet