Re: gethostbyname issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  I think best way to do this get sample networking source code by
Richard Stevens available on net and see how he has managed these
porting issues.

Regards
Syed 
On Tue, 2004-08-17 at 17:28, vaidya sn wrote:
> uname is not defined in BSD 4.3.
> 
> Could you plz tell me where I can dig deeper for info on how these 
> functions work .
> 
> gethostname
> gethostbyname
> uname
> 
> thnx n regards
> 
> vaidya
> 
> 
> Dinil Divakaran wrote:
> 
> >> Hi,
> >>
> >> I am using gethostname n gethostbyname in one of my application ... 
> >> to get the fully qualified hostname.
> >>
> >> i want to ensure that this will work in all distribution versions of 
> >> linux ... be it redhat, mandrake , fedora etc etc ...
> >>
> >
> > You can use 'uname' sytem call. See man page of uname(2). This should 
> > help.
> > -
> > : send the line "unsubscribe linux-net" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux