|
|||||||
|
|
GETPROTOENTSection: Manual del Programador de Linux (3)Updated: 29 Enero 1998 Index Return to Main Contents NOMBREgetprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - obtienen una entrada del fichero de protocolosSINOPSIS#include <netdb.h> struct protoent *getprotoent(void); struct protoent *getprotobyname(const char *nombre); struct protoent *getprotobynumber(int proto); void setprotoent(int dejaloabierto); void endprotoent(void); DESCRIPCIÓNLa función getprotoent() lee la siguiente línea del fichero /etc/protocols y devuelve una estructura protoent que contiene los campos de que consta la línea. El fichero /etc/protocols se abre si es necesario.La función getprotobyname() devuelve una estructura protoent para la línea de /etc/protocols que concuerde con el nombre de protocolo nombre. La función getprotobynumber() devuelve una estructura protoent para la línea que concuerde con el número de protocolo proto. La función setprotoent() abre y rebobina el fichero /etc/protocols. Si dejaloabierto es verdad (1), entonces el fichero no se cerrará entre llamadas a getprotobyname() o a getprotobynumber(). La función endprotoent() cierra /etc/protocols. La estructura protoent se define en <netdb.h> así:
Los miembros de la estructura protoent son:
VALOR DEVUELTOLas funciones getprotoent(), getprotobyname() y getprotobynumber() devuelven la estructura protoent, o un puntero NULL si ocurre un error o si se llega al final del fichero.FICHEROS
CONFORME ABSD 4.3VÉASE TAMBIÉNgetservent(3), getnetent(3), protocols(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. |