clientTCP

Connect to a remote, TCP based API server.

  1. auto clientTCP(string host, ushort port, string bind_interface, ushort bind_port)
  2. auto clientTCP(NetworkAddress addr, NetworkAddress bind_address)
    clientTCP
    (
    API
    )
    (
    NetworkAddress addr
    ,
    NetworkAddress bind_address = anyAddress()
    )

Examples

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

Meta