hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

README (772B)


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