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

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