home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16935 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. 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
  3. From: niu@prancer.eche.ualberta.ca (Shaohua Niu)
  4. Subject: Non-block read
  5. Message-ID: <1992Nov21.050038.26349@kakwa.ucs.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: prancer.eche.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. X-Newsreader: Tin 1.1 PL3
  10. Date: Sat, 21 Nov 1992 05:00:38 GMT
  11. Lines: 19
  12.  
  13.  
  14. To read from a socket without blocking, you can either use fork() to
  15. create a new socket, or use select() to check whether you get something
  16. to read in the socket. Select() is especially convenient when there
  17. are more than one clients trying to read the socket. Try 'man select'
  18. for more details.
  19.  
  20. --
  21.  
  22. ---------------------------------------------------------------------  
  23.   (_--_)  Shaohua Niu           |  `Have a nice day, and a nice night.'
  24.   ( oo )  Dept. of Chem. Eng.   |  Email: niu@prancer.eche.ualberta.ca  
  25.    )  (   Univ. of Alberta      |  Phone: (403) 432-7803 (Home)         
  26.    (__)   Canada, T6G 2G6       |         (403) 492-2971 (Office)
  27. ----------------------------------------------------------------------
  28.   
  29.  
  30.  
  31.  
  32.