Lines Matching +full:host +full:- +full:only
58 .Fn cap_getnameinfo "cap_channel_t *chan" "const struct sockaddr *sa" "socklen_t salen" "char *host…
108 are reentrant but not thread-safe.
109 That is, they may be called from separate threads only with different
115 Applications typically only require access to a small portion of the network
128 .Bd -literal -offset indent -compact
156 to do reverse DNS lookups only on those specific structures.
177 to bind only on those specific structures.
182 to connect only on those specific structures.
225 casper service and uses it to resolve a host and connect to it.
226 .Bd -literal
230 const char *host = "example.com";
253 /* Limit system.net to reserve IPv4 addresses, to host example.com . */
257 cap_net_limit_name2addr(limit, host, "80");
263 /* Find IP addresses for the given host. */
268 error = cap_getaddrinfo(capnet, host, "80", &hints, &res);
270 errx(1, "cap_getaddrinfo(): %s: %s", host, gai_strerror(error));
272 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
276 if (cap_connect(capnet, s, res->ai_addr, res->ai_addrlen) < 0)
277 err(1, "Unable to connect to host");