getprotobynumber()
Returns protocol information on the specified protocol number.
protocol = getprotobynumber(protonumb)
struct protoent *protocol;
intprotonumb;
protocol | Pointer to a protoent structure that contains protocol |
| information returned by getprotobynumber(). |
| The protoent structure is defined in the include files |
| <netdb.h>, SOCKET.PASI, and SOCKET.FTNI, for C, |
| Pascal, and FORTRAN programs, respectively. |
protonumb | Protocol number from which to get protocol information. |
getprotoent()
Reads the next line of the /etc/protocols file and returns the protocol information.
protocol = getprotoent()
struct protoent *protocol;
protocol | Pointer to a protoent structure that contains protocol |
| information returned by getprotoent(). |
| The protoent structure is defined in the include files |
| <netdb.h>, SOCKET.PASI, and SOCKET.FTNI, for C, |
| Pascal, and FORTRAN programs, respectively. |
426 Berkeley Software Distribution Interprocess Communication