From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: How to use the "gethostbyname" function Date: Fri, 14 Apr 2000 19:45:20 +0100 Organization: Customer of Planet Online Lines: 20 Message-ID: <38F76740.3F083474@bigfoot.com> References: <482568C1 DOT 002EF512 DOT 00 AT mercury DOT shanghaigm DOT com> NNTP-Posting-Host: modem-19.xenon.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg1.svr.pol.co.uk 955743852 1807 62.136.45.19 (14 Apr 2000 20:24:12 GMT) NNTP-Posting-Date: 14 Apr 2000 20:24:12 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. tao_Zhou AT Shanghaigm DOT com wrote: > In my program, I used the function "gethostbyname" > by which we can get the ip address through the hostname. Which network library did you install? DJGPP doesn't come with networking support - you have to get a library such as libsocket or Watt-32, see: http://libsocket.tsx.org/ http://www.bgnett.no/~giva/ If you're using libsocket, then you may need to configure it a bit. I can give your more help, if you want. HTH, bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/