[Ace-users] Re: networking in c

Evan Carew carew at pobox.com
Wed Jul 4 12:20:04 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

haiselvi14 at gmail.com wrote:
> How can we find the IP address,host name, manufacture number of a
> system using c programming?
> 

SYNOPSIS
       #include <sys/utsname.h>

       int uname(struct utsname *buf);

DESCRIPTION
       uname  returns  system  information in the structure pointed to
by buf.
       The utsname struct is defined in <sys/utsname.h>:
              struct utsname {
                      char sysname[];
                      char nodename[];
                      char release[];
                      char version[];
                      char machine[];
              #ifdef _GNU_SOURCE
                      char domainname[];
              #endif
              };
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGi9bnpxCQXwV2bJARAqnCAKDJ4mfFXt795bn7ieKp3Q8CpwBoAwCff7A9
ygnDXLGnXAM2RarPWr5dqb0=
=GXM1
-----END PGP SIGNATURE-----


More information about the Ace-users mailing list