Lines Matching +full:documentation +full:- +full:service
11 .\" documentation and/or other materials provided with the distribution.
45 have been added to the standard C run-time library.
55 Locating a service on a remote host requires many levels of
57 communicate. A service is assigned a name which is intended
63 a physical \fIlocation\fP and \fIroute\fP to the service. The
78 protocol names to protocol numbers, and service names
126 addresses by the use of a standard NS \fIClearinghouse service\fP,
130 standard libraries. The user-contributed Courier (Xerox
132 to accomplish this mapping; see the documentation and
201 * fits in 32 bits -- probably a poor one.
228 protocol-name mapping
245 Service names
247 Information regarding services is a bit more complicated. A service
251 Further, a service may reside on multiple ports.
255 A service mapping is described by the \fIservent\fP structure,
259 char *s_name; /* official service name */
265 The routine \fIgetservbyname\fP(3N) maps service
266 names to a servent structure by specifying a service name and,
271 returns the service specification for a telnet server using
284 Again, the reader is referred to the Courier compiler documentation
311 Aside from the address-related data base routines, there are several
312 other routines available in the run-time library which are of interest
325 bcmp(s1, s2, n) compare byte-strings; 0 if same, not 0 otherwise
327 bzero(base, n) zero-fill n bytes starting at base
328 htonl(val) convert 32-bit quantity from host to network byte order
329 htons(val) convert 16-bit quantity from host to network byte order
330 ntohl(val) convert 32-bit quantity from network to host byte order
331 ntohs(val) convert 16-bit quantity from network to host byte order
335 Table 1. C run-time routines.
339 system expects addresses to be supplied in network order (aka ``big-endian'' order). On
340 ``little-endian'' architectures, such as Intel x86 and VAX,
351 printf("port number %d\en", ntohs(sp->s_port));
375 fprintf(stderr, "rlogin: login/tcp: unknown service\en");
384 bcopy(hp->h_addr, (char *)&server.sin_addr, hp->h_length);
385 server.sin_family = hp->h_addrtype;
386 server.sin_port = sp->s_port;