Constructor
P2pandaNodenew
Declaration [src]
P2pandaNode*
p2panda_node_new (
P2pandaPrivateKey* private_key,
const char* database_url,
gboolean default_migrations,
P2pandaNetworkId* network_id,
GUri* relay_url,
P2pandaNodeId* bootstrap_node_id,
P2pandaMdnsDiscoveryMode mdns_mode
)
Parameters
private_key-
Type:
P2pandaPrivateKeyNo description available.
The data is owned by the caller of the function. database_url-
Type:
const char*A sqlite address.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. default_migrations-
Type:
gbooleanWhether to apply default migrations.
network_id-
Type:
P2pandaNetworkIdThe network id of the network to join.
The argument can be NULL.The data is owned by the caller of the function. relay_url-
Type:
GUriThe url of a iroh Relay Server.
The argument can be NULL.The data is owned by the caller of the function. bootstrap_node_id-
Type:
P2pandaNodeIdThe address of the bootstrap node.
The argument can be NULL.The data is owned by the caller of the function. mdns_mode-
Type:
P2pandaMdnsDiscoveryModeThe MDNS decovery mode.
Return value
Type: P2pandaNode
A new P2pandaNode.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |