Changeset View
Changeset View
Standalone View
Standalone View
lib/libcasper/services/cap_dns/cap_dns.3
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
.Fn cap_gethostbyname2 | .Fn cap_gethostbyname2 | ||||
functions. | functions. | ||||
.It family ( NV_TYPE_NUMBER ) | .It family ( NV_TYPE_NUMBER ) | ||||
The | The | ||||
.Va family | .Va family | ||||
limits service to one of the address families (e.g. | limits service to one of the address families (e.g. | ||||
.Dv AF_INET , AF_INET6 , | .Dv AF_INET , AF_INET6 , | ||||
etc.). | etc.). | ||||
.El | |||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
The following example first opens a capability to casper and then uses this | The following example first opens a capability to casper and then uses this | ||||
capability to create the | capability to create the | ||||
.Nm system.dns | .Nm system.dns | ||||
casper service and uses it to resolve an IP address. | casper service and uses it to resolve an IP address. | ||||
.Bd -literal | .Bd -literal | ||||
cap_channel_t *capcas, *capdns; | cap_channel_t *capcas, *capdns; | ||||
int familylimit, error; | int familylimit, error; | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |