Xref: utzoo comp.protocols.tcp-ip:7429 unix-pc.general:3101 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!amdahl!rtech!wrs!hwajin From: hwajin@wrswrs.UUCP (Hwajin Bae) Newsgroups: comp.protocols.tcp-ip,unix-pc.general Subject: Re: Is rhost() a front end to gethbyname() Message-ID: <649@wrs.UUCP> Date: 16 Jun 89 21:30:35 GMT References: <556@uncle.UUCP> Reply-To: hwajin@wrs.UUCP (Hwajin Bae) Organization: Wind River Systems, Emeryville, CA Lines: 18 In article <556@uncle.UUCP> jbm@uncle.UUCP (John B. Milton) writes: >I'm new to writing socket code, and I've run across some code that uses rhost(), >which is not in my library. Does this perform a similar function to >geth[ost]byname()? Anybody got some good get-aquainted-to-sockets code? Ahhhh... memories... The rhost() system call is an older 4.1BSD equivalent of gethostby*() like calls... so it's better to convert the code to use newer gethostby*() style calls. THe only still widely available 4.1 BSD TCP/IP code is the one by Excelan whose TCP/IP and socket code runs on (literally) their intelligent ethernet boards. Most of us are using 4.3 based TCP/IP as you know. hwajin -- {uunet,rtech,sun}!wrs!hwajin (UUCP) bae@tis.llnl.gov (Internet) Wind River Systems, 1351 Ocean Ave, Emeryville, CA 94608