vibe.d beta banner
get vibe.d
0.7.30

Function connectTCP

Establishes a connection to the given host/port.

Prototypes

TCPConnection connectTCP(
  string host,
  ushort port,
  string bind_interface = null,
  ushort bind_port = cast(ushort)0u
);

TCPConnection connectTCP(
  NetworkAddress addr,
  NetworkAddress bind_address = anyAddress()
);
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.