home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!kjetilo
- From: kjetilo@bilbo.uio.no (Kjetil Otter Olsen)
- Subject: PC-NFS Programmers Toolkit problem
- Message-ID: <920812.110953.kjetilo@test2>
- Lines: 27
- Sender: news@ulrik.uio.no (Mr News)
- Nntp-Posting-Host: test2.uio.no
- Organization: University of Oslo
- Date: Sat, 12 Sep 1992 10:09:53 GMT
- Lines: 28
-
-
-
- Using PC-NFS Programmers Toolkit 2.0, a socket() call returns with
- the error: Bad file number
-
- /* Code-piece */
-
- int iSock = 0;
-
- if ((iSock = socket(AF_INIT, SOCK_STREAM, 0)) < 0) {
- tk_perror("Socket: ");
- }
- /* End of Code-piece */
-
- Since this very code-piece works in other programs, I suspect
- a conflict of some kind between the toolkit and my program...
-
- Can anyone tell me the reason why socket() returns with that error,
- and some clues on what to look for in my program.
-
- Thanks for any clues or hint!
-
- Answers in E-mail please...
-
- --Kjetil
- -----
- Kjetil Otter Olsen, Senior Engineer, M.Sc., C.Sc. (kjetilo@usit.uio.no)
- Center for Information Technology Services (USIT), University of Oslo, Norway
-