home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.networking:2480 comp.os.os2.programmer:7086
- 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
- From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
- Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
- Subject: IBM TCP/IP: how to get my own address????
- Distribution: world
- Message-ID: <724545243rommel.root@jonas.gold.sub.org>
- Sender: root@jonas.gold.sub.org
- Date: Wed, 16 Dec 92 23:34:03 MET
- Organization: Private
- Lines: 19
-
- 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?
-
- Is it me that I don't see an overly simple solution or is the
- programmer's kit of IBM's TCP/IP so bad?
-
- Thanks,
- Kai Uwe Rommel
-
- --
- /* Kai Uwe Rommel Muenchen, Germany *
- * rommel@jonas.gold.sub.org Phone +49 89 723 4101 *
- * rommel@informatik.tu-muenchen.de Fax +49 89 723 7889 */
-
- DOS ... is still a real mode only non-reentrant interrupt
- handler, and always will be. -Russell Williams
-