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 ushort

Port to listen for new connections

address IpAddress

Address of the interface to listen on

Return Value

Type: Status

Status code.

Meta