home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5820 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  799 b 

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!vision!chetanm
  2. From: chetanm@visionware.co.uk (Chetan Mistry)
  3. Newsgroups: comp.unix.programmer
  4. Subject: IOCTL routines under Interactive UNIX
  5. Message-ID: <1993Jan4.165201.11213@visionware.co.uk>
  6. Date: 4 Jan 93 16:52:01 GMT
  7. Sender: news@visionware.co.uk (News Admin)
  8. Organization: VisionWare Ltd., Leeds, UK
  9. Lines: 18
  10. X-Newsreader: Tin 1.1 PL4
  11.  
  12.  
  13. Does anybody no anything about the IOCTL routines, especially
  14. under Interactive UNIX. I have created a socket and I'm trying
  15. to change the socket so that it is non-blocking using FIONBIO. 
  16.  
  17.   eg.
  18.  
  19.    int s, block =1;
  20.  
  21.    s = socket(AF_INET, SOCK_DGRAM, 0)            
  22.  
  23.    ioctl(s, FIONBIO, (char *) &block);
  24.  
  25. The ioctl call never terminates (does anybody no why ?).
  26.  
  27. Any help will be appreciated. Thanks
  28.   
  29. Chet
  30.