home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / ibmpc / 5196 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.1 KB  |  41 lines

  1. Newsgroups: comp.protocols.tcp-ip.ibmpc
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!kjetilo
  3. From: kjetilo@bilbo.uio.no (Kjetil Otter Olsen)
  4. Subject: PC-NFS Programmers Toolkit problem
  5. Message-ID: <920812.110953.kjetilo@test2>
  6. Lines: 27
  7. Sender: news@ulrik.uio.no (Mr News)
  8. Nntp-Posting-Host: test2.uio.no
  9. Organization: University of Oslo
  10. Date: Sat, 12 Sep 1992 10:09:53 GMT
  11. Lines: 28
  12.  
  13.  
  14.  
  15. Using PC-NFS Programmers Toolkit 2.0, a socket() call returns with
  16. the error: Bad file number
  17.  
  18. /* Code-piece */
  19.  
  20. int iSock = 0;
  21.  
  22. if ((iSock = socket(AF_INIT, SOCK_STREAM, 0)) < 0) {
  23.         tk_perror("Socket: ");
  24.     }
  25. /* End of Code-piece */
  26.  
  27. Since this very code-piece works in other programs, I suspect
  28. a conflict of some kind between the toolkit and my program...
  29.  
  30. Can anyone tell me the reason why socket() returns with that error,
  31. and some clues on what to look for in my program.
  32.  
  33. Thanks for any clues or hint!
  34.  
  35. Answers in E-mail please...
  36.  
  37. --Kjetil
  38. -----
  39. Kjetil Otter Olsen,   Senior Engineer,   M.Sc.,   C.Sc. (kjetilo@usit.uio.no)
  40. Center for Information Technology Services (USIT), University of Oslo, Norway
  41.