Net::Socket::Listen Method

Listens for incoming connections on the specified host and port. If you need to connect to a local process, use 127.0.0.1 as the host.

If the method returned true, you can use Accept to accept incoming connections.

Syntax

bool Net::Socket::Listen(
const string&in host,
uint16 port
)

Parameters

const string&in host

uint16 port

Return value

bool
Whether the operation was successful.

Remarks

None.