Function StreamPeerTCP.connectToHost

Connects to the specified host:port pair. A hostname will be resolved if valid. Returns constant OK on success or constant FAILED on failure.

godot.core.defs.GodotError connectToHost (
  const(String) host,
  const(long) port
) nothrow @nogc;