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

  1. Xref: sparky comp.os.os2.networking:2480 comp.os.os2.programmer:7086
  2. Path: sparky!uunet!zaphod.mps.ohio-state.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: IBM TCP/IP: how to get my own address????
  6. Distribution: world
  7. Message-ID: <724545243rommel.root@jonas.gold.sub.org>
  8. Sender: root@jonas.gold.sub.org
  9. Date: Wed, 16 Dec 92 23:34:03 MET
  10. Organization: Private
  11. Lines: 19
  12.  
  13. If I use IBM's TCP/IP, how am I supposed to get the host name/address
  14. of the local system? There is no gethostname() call and gethostid()
  15. always returns -1. Could anyone PLEASE tell me how I can solve this
  16. stupid problem? What else can I do (except perhaps calling
  17. sock_init()) before calling gehostid() to have it succeed?
  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. Thanks,
  23. Kai Uwe Rommel
  24.  
  25. --
  26. /* Kai Uwe Rommel                                      Muenchen, Germany *
  27.  * rommel@jonas.gold.sub.org                       Phone +49 89 723 4101 *
  28.  * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */
  29.  
  30. DOS ... is still a real mode only non-reentrant interrupt
  31. handler, and always will be.                -Russell Williams
  32.