home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.networking:2493 comp.os.os2.programmer:7117
- Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!ellis!sip1
- From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
- Subject: Re: IBM TCP/IP: how to get my own address????
- Message-ID: <1992Dec17.231259.5806@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: sip1@midway.uchicago.edu
- Organization: Dept. of Econ., Univ. of Chicago
- References: <724545243rommel.root@jonas.gold.sub.org>
- Date: Thu, 17 Dec 1992 23:12:59 GMT
- Lines: 19
-
- In article <724545243rommel.root@jonas.gold.sub.org> rommel@jonas.gold.sub.org (Kai Uwe Rommel) writes:
- >If I use IBM's TCP/IP, how am I supposed to get the host name/address
- >of the local system? There is no gethostname() call and gethostid()
- >always returns -1. Could anyone PLEASE tell me how I can solve this
- >stupid problem? What else can I do (except perhaps calling
- >sock_init()) before calling gehostid() to have it succeed?
- >Is it me that I don't see an overly simple solution or is the
- >programmer's kit of IBM's TCP/IP so bad?
-
- Just out of curiosity, have you looked at the new 32-bit TCP/IP
- headers? They are available in the file PROGCSD.ZIP (I believe) in
- /pub/uploads/sharebbs on ftp-os2.nmsu.edu. (That's roughly correct,
- anyway.)
-
- --
- Timothy F. Sipples | Read the OS/2 FAQ List 2.0h, available from
- sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
- Dept. of Econ., Univ. | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
- of Chicago, 60637 | [Read the List, THEN post to ONE OS/2 newsgroup.]
-