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

NAME

6       getservbyname, getservbyport  - get service entry
7

SYNOPSIS

9       #include <net/resolv.h>
10
11       tcpport_t getservbyname(char *name);
12       char *getservbyport(tcpport_t port, char * buf);
13

DESCRIPTION

15       The  getservbyname() function returns the standard port for the service
16       with the name name. If no service is known then NULL is returned.
17
18       The getservbyport() function copies into buf (and returns buf) the ser‐
19       vice  matching the standard port port. If no service is known then port
20       is returned in ASCII form.
21
22

RETURN VALUE

24       Detailed above.
25
26

NOTES

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

AUTHOR

33       Dominic Morris <dom@jb.man.ac.uk>
34
35
36
37                               18 February 2000              getservbyname(3z)
Impressum