home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.networking:2518 comp.os.os2.programmer:7149
- 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
- From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
- Newsgroups: comp.os.os2.networking,comp.os.os2.programmer
- Subject: Re: IBM TCP/IP: how to get my own address????
- Distribution: world
- Message-ID: <724793436rommel.root@jonas.gold.sub.org>
- Sender: root@jonas.gold.sub.org
- Date: Sat, 19 Dec 92 20:30:36 MET
- References: <724545243rommel.root@jonas.gold.sub.org> <1992Dec17.231259.5806@midway.uchicago.edu>
- Organization: Private
- Lines: 26
-
- In article <1992Dec17.231259.5806@midway.uchicago.edu> sip1@midway.uchicago.edu writes:
- >In article <724545243rommel.root@jonas.gold.sub.org> rommel@jonas.gold.sub.org (Kai Uwe Rommel) writes:
- >>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()
- ...
- >>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?
- >
- >Just out of curiosity, have you looked at the new 32-bit TCP/IP
- >headers? They are available in the file PROGCSD.ZIP (I believe) in
- >/pub/uploads/sharebbs on ftp-os2.nmsu.edu. (That's roughly correct,
- >anyway.)
-
- Yes, I have those headers. I have also properly called sock_init() but
- still get only an error return code from gethostid(). This happens
- with MS C 6.00 (i.e. 16-bit) as well as IBM C Set/2.
-
- 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
-