Expand description
quic-p2p enables communication within a peer to peer network over the QUIC protocol.
Structs§
- Config
- QuicP2p configurations
- Event
Senders - Senders for node and client events
- Over
Ride - For Operating Systems beyond Windows or UNIX. May also be used for testing and mobile platforms.
- QuicP2p
- Main QuicP2p instance to communicate with QuicP2p
Enums§
- Dirs
- Location at which data such as config, keys, certificates and other backup data are stored.
- Event
- QuicP2p Events to the user
- OurType
- Whether we are a client or a node.
- Peer
- Representation of a peer to us.
- Quic
P2pError
Constants§
- DEFAULT_
IDLE_ TIMEOUT_ MSEC - Default interval within which if we hear nothing from the peer we declare it offline to us.
- DEFAULT_
KEEP_ ALIVE_ INTERVAL_ MSEC - Default Interval to send keep-alives if we are idling so that the peer does not disconnect from us declaring us offline. If none is supplied we’ll default to the documented constant.
- DEFAULT_
MAX_ ALLOWED_ MSG_ SIZE - Default maximum allowed message size. We’ll error out on any bigger messages and probably
shutdown the connection. This value can be overridden via the
Config
option. - DEFAULT_
PORT_ TO_ TRY - In the absence of a port supplied by the user via the config we will first try using this before using a random port.