Net::Socket::Connect Method

Tries to connect to a remote host.

Syntax

bool Net::Socket::Connect(
const string&in host,
uint16 port,
uint timeout = Math :: UINT_MAX
)

Parameters

const string&in host

uint16 port

uint timeout = Math :: UINT_MAX

Return value

bool
Whether the operation was successful.

Remarks

None.