ceremonyclient/go-libp2p/p2p/net
Black Swan 51eafd35d4
Post 2.1.0.15 optimizations (#491)
* implement tStringCast() for tests

* make grpc dependency direct

* import p2p module once

* fix p2p-ping after blackhole detection deprecation
2025-12-15 16:19:12 -06:00
..
conngater v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
connmgr v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
gostream v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
mock v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
nat v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
pnet v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
reuseport v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
swarm Post 2.1.0.15 optimizations (#491) 2025-12-15 16:19:12 -06:00
upgrader v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
README.md Launch readiness: import utility 2023-08-20 23:07:43 -05:00

Network

The 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:

  • Conn - a connection to a single Peer
    • MultiConn - a set of connections to a single Peer
    • SecureConn - an encrypted (TLS-like) connection
  • Swarm - holds connections to Peers, multiplexes from/to each MultiConn
  • Muxer - multiplexes between Services and Swarm. Handles Request/Reply.
    • Service - connects between an outside client service and Network.
    • Handler - the client service part that handles requests

It looks a bit like this: