1getservprotobyname(3z)     z88dk Programmer's Manual    getservprotobyname(3z)
2
3
4

NAME

6       getservprotobyname, getservprotobyport  - get servprotoice entry
7

SYNOPSIS

9       #include <net/resolv.h>
10
11       u8_t getservprotobyname(char *name);
12       u8_t getservprotobyport(tcpport_t port);
13

DESCRIPTION

15       The  getservprotobyname() function returns the appropriate protocol for
16       the service with the name name. If the service isn't known then NULL is
17       returned.
18
19       The  getservprotobyport() function returns the appropriate protocol for
20       the service with the standard port  number  port.  If  the  service  is
21       unknown then NULL is returned.
22
23

RETURN VALUE

25       If  a  service  is  known  to more than one protocol then the most fre‐
26       quently used is returned.
27
28

NOTES

30       These functions use a lookup table compiled into the ZSock  kernel,  it
31       is not likely that method will change in the near future.
32
33

AUTHOR

35       Dominic Morris <dom@jb.man.ac.uk>
36
37
38
39                               18 February 2000         getservprotobyname(3z)
Impressum