Debian Codegraph @

net/dial/README

raw
1 dial: high-level support for establishing network connections
2
3 net::dial provides a single function to facilitate the establishment of outgoing
4 network connections. It handles port selection, address parsing, protocol and
5 service lookup, DNS lookup (via /etc/hosts, /etc/resolv.conf, etc), SRV record
6 resolution, and so on. See [[dial]] for details.
7
8 Modules implementing their own network protocols are also able to add themselves
9 to the protocol and service registry. The protocol registry is used for
10 transport-level protocols (such as TCP) and is managed via [[registerproto]];
11 the service registry is used for application-level protocols (such as SSH) and
12 is managed via [[registersvc]].
13
14 Some useful functions for IP-related protocols to interpret the "addr" parameter
15 of the dial function are also provided, namely [[resolve]].