home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.networking:2488 comp.os.os2.programmer:7094
- Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!news
- From: oleg@watson.ibm.com (Oleg Vishnepolsky)
- Subject: Re: IBM TCP/IP: how to get my own address????
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Dec17.163921.26993@watson.ibm.com>
- Date: Thu, 17 Dec 1992 16:39:21 GMT
- News-Software: IBM OS/2 PM RN (NR/2) v0.16g by O. Vishnepolsky and R. Rogers
- Lines: 10
- Reply-To: oleg@watson.ibm.com (Oleg Vishnepolsky)
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <724545243rommel.root@jonas.gold.sub.org>
- Nntp-Posting-Host: rachel.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
-
- In <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?
-
- You have to call sock_init() before calling gethostid().
-
- Oleg Vishnepolsky
-