github.com/lbryio/lbcd@v0.22.119/connmgr/README.md (about) 1 connmgr 2 ======= 3 4 [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 5 6 Package connmgr implements a generic network connection manager. 7 8 ### Overview 9 10 Connection Manager handles all the general connection concerns such as 11 maintaining a set number of outbound connections, sourcing peers, banning, 12 limiting max connections, tor lookup, etc. 13 14 The package provides a generic connection manager which is able to accept 15 connection requests from a source or a set of given addresses, dial them and 16 notify the caller on connections. The main intended use is to initialize a pool 17 of active connections and maintain them to remain connected to the P2P network. 18 19 In addition, the connection manager provides the following utilities: 20 21 - Notifications on connections or disconnections 22 - Handle failures and retry new addresses from the source 23 - Connect only to specified addresses 24 - Permanent connections with increasing backoff retry timers 25 - Disconnect or Remove an established connection