• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..19-Dec-2020-

conngater/H19-Dec-2020-726547

mock/H19-Dec-2020-2,5681,940

README.mdH A D19-Dec-2020810 1811

README.md

1# Network
2
3The IPFS Network package handles all of the peer-to-peer networking. It connects to other hosts, it encrypts communications, it muxes messages between the network's client services and target hosts. It has multiple subcomponents:
4
5- `Conn` - a connection to a single Peer
6  - `MultiConn` - a set of connections to a single Peer
7  - `SecureConn` - an encrypted (TLS-like) connection
8- `Swarm` - holds connections to Peers, multiplexes from/to each `MultiConn`
9- `Muxer` - multiplexes between `Services` and `Swarm`. Handles `Request/Reply`.
10  - `Service` - connects between an outside client service and Network.
11  - `Handler` - the client service part that handles requests
12
13It looks a bit like this:
14
15
16![](https://docs.google.com/drawings/d/1FvU7GImRsb9GvAWDDo1le85jIrnFJNVB_OTPXC15WwM/pub?h=480)
17
18