Documentation

Net::Socket::Listen

Method in Socket

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

Starts listening on the given host and port.

string host

uint16 port

Returns bool
bool Listen(uint16 port)

Starts listening on the given port using 0.0.0.0 as the host. Note that this will open up the port to the LAN, which may not be what you want.

uint16 port

Returns bool