Click or drag to resize

StreamPeerTCPConnectToHost Method

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

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error ConnectToHost(
	string host,
	int port
)

Parameters

host
Type: SystemString

[Missing <param name="host"/> documentation for "M:Godot.StreamPeerTCP.ConnectToHost(System.String,System.Int32)"]

port
Type: SystemInt32

[Missing <param name="port"/> documentation for "M:Godot.StreamPeerTCP.ConnectToHost(System.String,System.Int32)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.StreamPeerTCP.ConnectToHost(System.String,System.Int32)"]

See Also