TcpListener.listen

Start listening for connections.

This functions makes the socket listen to the specified port, waiting for new connections. If the socket was previously listening to another port, it will be stopped first and bound to the new port.

class TcpListener
Status
listen

Parameters

port
Type: ushort

Port to listen for new connections

Return Value

Type: Status

Status code.

Meta