home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / networki / 2488 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.3 KB

  1. Xref: sparky comp.os.os2.networking:2488 comp.os.os2.programmer:7094
  2. Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
  3. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!news
  4. From: oleg@watson.ibm.com (Oleg Vishnepolsky)
  5. Subject: Re: IBM TCP/IP: how to get my own address????
  6. Sender: news@watson.ibm.com (NNTP News Poster)
  7. Message-ID: <1992Dec17.163921.26993@watson.ibm.com>
  8. Date: Thu, 17 Dec 1992 16:39:21 GMT
  9. News-Software: IBM OS/2 PM RN (NR/2) v0.16g by O. Vishnepolsky and R. Rogers
  10. Lines: 10
  11. Reply-To: oleg@watson.ibm.com (Oleg Vishnepolsky)
  12. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  13. References: <724545243rommel.root@jonas.gold.sub.org>
  14. Nntp-Posting-Host: rachel.watson.ibm.com
  15. Organization: IBM T.J. Watson Research Center
  16.  
  17. In <724545243rommel.root@jonas.gold.sub.org> rommel@jonas.gold.sub.org (Kai Uwe Rommel) writes:
  18. >If I use IBM's TCP/IP, how am I supposed to get the host name/address
  19. >of the local system? There is no gethostname() call and gethostid()
  20. >always returns -1. Could anyone PLEASE tell me how I can solve this
  21. >stupid problem? What else can I do (except perhaps calling
  22. >sock_init()) before calling gehostid() to have it succeed?
  23.  
  24. You have to call sock_init() before calling gethostid().
  25.  
  26. Oleg Vishnepolsky
  27.