1DNSServiceRefSockFD(3DDNNSS_SSeDr)vice Discovery Library FDuNnScSteirovnisceRefSockFD(3DNS_SD)
2
3
4

NAME

6       DNSServiceRefSockFD - access underlying UNIX domain socket descriptor
7

SYNOPSIS

9       cc [ flag ... ] file ... -ldns_sd [ library ... ]
10       #include <dns_sd.h>
11
12       DNSServiceRefSockFD(DNSServiceRef *sdRef);
13
14

DESCRIPTION

16       Access the underlying UNIXTM domain socket from the initialized DNSSer‐
17       viceRef returned from  DNS  Service  calls.  Applications  should  only
18       access  the  underlying UNIX domain socket to poll for results from the
19       mDNS daemon. Applications should not directly  read  or  write  to  the
20       socket.  When results are available, applications should call DNSServi‐
21       ceProcessResult(). The application is responsible  for  processing  the
22       data  on  the  socket in a timely fashion. The daemon can terminate its
23       connection with a client that does not clear its socket buffer.
24

RETURN VALUES

26       The underlying UNIX domain socket descriptor of the DNSServiceRef or -1
27       is returned in case of error.
28

ATTRIBUTES

30       See attributes(5) for description of the following attributes:
31
32
33
34
35       ┌─────────────────────────────┬─────────────────────────────┐
36       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
37       ├─────────────────────────────┼─────────────────────────────┤
38       │Interface Stability          │Committed                    │
39       ├─────────────────────────────┼─────────────────────────────┤
40       │MT-Level                     │Safe                         │
41       └─────────────────────────────┴─────────────────────────────┘
42

SEE ALSO

44       DNSServiceBrowse(3DNS_SD), DNSServiceRegister(3DNS_SD), attributes(5)
45
46
47
48SunOS 5.11                        20 Aug 2007     DNSServiceRefSockFD(3DNS_SD)
Impressum