1getservprotobyname(3z) z88dk Programmer's Manual getservprotobyname(3z)
2
3
4
6 getservprotobyname, getservprotobyport - get servprotoice entry
7
9 #include <net/resolv.h>
10
11 u8_t getservprotobyname(char *name);
12 u8_t getservprotobyport(tcpport_t port);
13
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
25 If a service is known to more than one protocol then the most fre‐
26 quently used is returned.
27
28
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
35 Dominic Morris <dom@jb.man.ac.uk>
36
37
38
39 18 February 2000 getservprotobyname(3z)