Struct routing::Client [] [src]

pub struct Client { /* fields omitted */ }

Interface for sending and receiving messages to and from a network of nodes in the role of a client.

A client is connected to the network via one or more nodes. Messages are never routed via a client, and a client cannot be part of a section authority.

Methods

impl Client
[src]

Create a new Client.

It will automatically connect to the network, but not attempt to achieve full routing node status. The name of the client will be the name of the PublicId of the keys and must equal the SHA512 hash of its public signing key, otherwise the client will be instantly terminated.

Keys will be exchanged with the ClientAuthority so that communication with the network is cryptographically secure and uses section consensus. The restriction for the client name exists to ensure that the client cannot choose its ClientAuthority.

Send a Get message with a DataIdentifier to an Authority, signed with given keys.

Add something to the network

Change something already on the network

Remove something from the network

Append an item to appendable data.

Request account information for the Client calling this function

Returns the name of this node.

Trait Implementations

impl Drop for Client
[src]

A method called when the value goes out of scope. Read more