clientTCP

Connect to a remote, TCP based API server.

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

Examples

abstract static class API
{
    string someMethod(string name);
}
auto client = clientTCP!API("127.0.0.1", 8030);
client.someMethod("john");
client.closeTCP();

Meta