clientNoise

Connect to a remote, vibe-noisestream based API server.

  1. auto clientNoise(NoiseSettings settings, string host, ushort port, string bind_interface, ushort bind_port)
    clientNoise
    (
    API
    )
    (
    NoiseSettings settings
    ,
    string host
    ,
    ushort port
    ,
    string bind_interface = null
    ,
    ushort bind_port = cast(ushort)0u
    )
  2. auto clientNoise(NoiseSettings settings, NetworkAddress addr, NetworkAddress bind_address)

Examples

abstract static class API
{
    string someMethod(string name);
}

auto settings = NoiseSettings(NoiseKind.client);
settings.privateKeyPath = Path("client.key");
settings.remoteKeyPath = Path("server.pub");

auto client = clientNoise!API(settings, "127.0.0.1", 8030);
client.someMethod("john");
client.closeTCP();

Meta