home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!uw-beaver!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!prancer.eche.ualberta.ca!niu
- From: niu@prancer.eche.ualberta.ca (Shaohua Niu)
- Subject: Non-block read
- Message-ID: <1992Nov21.050038.26349@kakwa.ucs.ualberta.ca>
- Sender: news@kakwa.ucs.ualberta.ca
- Nntp-Posting-Host: prancer.eche.ualberta.ca
- Organization: University Of Alberta, Edmonton Canada
- X-Newsreader: Tin 1.1 PL3
- Date: Sat, 21 Nov 1992 05:00:38 GMT
- Lines: 19
-
-
- To read from a socket without blocking, you can either use fork() to
- create a new socket, or use select() to check whether you get something
- to read in the socket. Select() is especially convenient when there
- are more than one clients trying to read the socket. Try 'man select'
- for more details.
-
- --
-
- ---------------------------------------------------------------------
- (_--_) Shaohua Niu | `Have a nice day, and a nice night.'
- ( oo ) Dept. of Chem. Eng. | Email: niu@prancer.eche.ualberta.ca
- ) ( Univ. of Alberta | Phone: (403) 432-7803 (Home)
- (__) Canada, T6G 2G6 | (403) 492-2971 (Office)
- ----------------------------------------------------------------------
-
-
-
-
-