public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Mares <mj@ucw.cz>
To: shesha bhushan <bhushan_vadulas@hotmail.com>
Cc: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: Re: GETHOSTBYNAME()
Date: Mon, 24 Mar 2003 10:23:07 +0100	[thread overview]
Message-ID: <20030324092307.GA658@ucw.cz> (raw)
In-Reply-To: <F88IYUmwO9suAkWORuX000101d2@hotmail.com>

Hello!

>  data = gethostbyname("158.168.1.1");

If you use gethostbyname only on numerical addresses, then it's fine to
replace it by htonl(0x98a80101) etc.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
A Bash poem: time for echo in canyon; do echo $echo $echo; done

  parent reply	other threads:[~2003-03-24  9:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24  4:18 GETHOSTBYNAME() shesha bhushan
2003-03-24  4:55 ` GETHOSTBYNAME() Prasad
2003-03-24  6:43   ` GETHOSTBYNAME() Jan Hudec
2003-03-24  9:23 ` Martin Mares [this message]
     [not found] <F64RsqSoQHK3gSkQsfl0000279b@hotmail.com>
2003-03-24  5:51 ` GETHOSTBYNAME() Prasad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030324092307.GA658@ucw.cz \
    --to=mj@ucw.cz \
    --cc=bhushan_vadulas@hotmail.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox