|
|||||||
|
|
GETNETENTSection: Manual del Programador de Linux (3)Updated: 24 Julio 1993 IndexReturn to Main Contents NOMBREgetnetent, getnetbyname, getnetbyaddr, setnetent, endnetent - obtienen una entrada del fichero de redesSINOPSIS#include <netdb.h>struct netent *getnetent(void);struct netent *getnetbyname(const char *nombre);struct netent *getnetbyaddr(long red, int tipo);void setnetent(int dejaloabierto);void endnetent(void); DESCRIPCIÓNLa función getnetent() lee la línea siguiente del fichero/etc/networks y devuelve una estructura netent que contienelos campos descompuestos correspondientes a la línea. El fichero/etc/networks se abre si es necesario.La función getnetbyname() devuelve una estructura netentcorrespondiente a la línea de /etc/networks que concuerde con elnombre de red nombre. La función getnetbyaddr() devuelve una estructura netentpara la línea que concuerde con el número de red net de tipotipo. La función setnetent() abre y rebobina el fichero/etc/networks. Si dejaloabierto es verdadero (1),entonces el fichero no se cerrará entre llamadas agetnetbyname() y getnetbyaddr(). La función endnetent() cierra /etc/networks. La estructura netent se define en <netdb.h> como sigue:
Los miembros de la estructura netent son:
VALOR DEVUELTOLas funciones getnetent(), getnetbyname() y getnetbyaddr()devuelven la estructura netent, o un puntero NULL si ocurre unerror o se llega al final del fichero.FICHEROS/etc/networks fichero de datos de redesCONFORME ABSD 4.3RFC 1101 VÉASE TAMBIÉNgetprotoent(3), getservent(3), networks(5)Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |