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

  1. Xref: sparky comp.os.os2.networking:2518 comp.os.os2.programmer:7149
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!cs.utexas.edu!asuvax!chnews!hfglobe!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
  3. From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
  4. Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
  5. Subject: Re: IBM TCP/IP: how to get my own address????
  6. Distribution: world
  7. Message-ID: <724793436rommel.root@jonas.gold.sub.org>
  8. Sender: root@jonas.gold.sub.org
  9. Date: Sat, 19 Dec 92 20:30:36 MET
  10. References: <724545243rommel.root@jonas.gold.sub.org> <1992Dec17.231259.5806@midway.uchicago.edu>
  11. Organization: Private
  12. Lines: 26
  13.  
  14. In article <1992Dec17.231259.5806@midway.uchicago.edu> sip1@midway.uchicago.edu writes:
  15. >In article <724545243rommel.root@jonas.gold.sub.org> rommel@jonas.gold.sub.org (Kai Uwe Rommel) writes:
  16. >>If I use IBM's TCP/IP, how am I supposed to get the host name/address
  17. >>of the local system? There is no gethostname() call and gethostid()
  18. ...
  19. >>Is it me that I don't see an overly simple solution or is the
  20. >>programmer's kit of IBM's TCP/IP so bad?
  21. >
  22. >Just out of curiosity, have you looked at the new 32-bit TCP/IP
  23. >headers?  They are available in the file PROGCSD.ZIP (I believe) in
  24. >/pub/uploads/sharebbs on ftp-os2.nmsu.edu.  (That's roughly correct,
  25. >anyway.)
  26.  
  27. Yes, I have those headers. I have also properly called sock_init() but
  28. still get only an error return code from gethostid(). This happens
  29. with MS C 6.00 (i.e. 16-bit) as well as IBM C Set/2.
  30.  
  31. Kai Uwe Rommel
  32.  
  33. --
  34. /* Kai Uwe Rommel                                      Muenchen, Germany *
  35.  * rommel@jonas.gold.sub.org                       Phone +49 89 723 4101 *
  36.  * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */
  37.  
  38. DOS ... is still a real mode only non-reentrant interrupt
  39. handler, and always will be.                -Russell Williams
  40.