mirror of
https://github.com/logos-co/logos-libp2p-module.git
synced 2026-08-31 01:41:12 +00:00
feat: use nim-ffi cbindings (#77)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
/// | Field | Type | Default | Description |
|
||||
/// |-------|------|---------|-------------|
|
||||
/// | `addrs` | `vector<string>` | `["/ip4/127.0.0.1/tcp/0"]` | Listen addresses |
|
||||
/// | `transport` | `int` | `LIBP2P_TRANSPORT_TCP` | Transport protocol |
|
||||
/// | `transport` | `TransportType` | `TRANSPORT_TYPE_TCP` | Transport protocol |
|
||||
/// | `maxConnections` | `int` | `50` | Max total connections |
|
||||
/// | `maxConnsPerPeer` | `int` | `1` | Max connections per peer |
|
||||
/// | `mountGossipsub` | `bool` | `true` | Enable GossipSub |
|
||||
@@ -150,7 +150,7 @@ int main()
|
||||
///
|
||||
/// ```cpp
|
||||
/// // QUIC transport instead of TCP
|
||||
/// options.transport = LIBP2P_TRANSPORT_QUIC;
|
||||
/// options.transport = TRANSPORT_TYPE_QUIC;
|
||||
/// options.addrs = {"/ip4/127.0.0.1/udp/9092/quic-v1"};
|
||||
///
|
||||
/// // Listen on multiple addresses
|
||||
|
||||
Reference in New Issue
Block a user