Session
Functions
Adds peers to connect to.
Binds the network listeners to the specified interfaces.
Creates a new repository.
Delete a repository with the given name.
Returns our Ouisync protocol version.
Returns the highest protocol version of all known peers.
Returns the listener addresses of this Ouisync instance.
Returns the listener addresses of the specified remote Ouisync instance. Works only if the remote control API is enabled on the remote instance. Typically used with cache servers.
Returns the runtime id of this Ouisync instance.
Returns the access mode that the given token grants.
Return the info-hash of the repository corresponding to the given token, formatted as hex string.
Returns the suggested name for the repository corresponding to the given token.
Initializes the network according to the stored configuration. If a particular network parameter is not yet configured, falls back to the given defaults.
Is local discovery enabled?
Checks whether accepting peers discovered on the peer exchange is enabled.
Is port forwarding (UPnP) enabled?
Opens an existing repository.
Removes peers previously added with Self::session_add_user_provided_peers.
Enables/disables local discovery.
Enables/disables port forwarding (UPnP).
Returns a Flow of network events.
Checks whether the given string is a valid share token.