TcpListener

Socket that listens to new TCP connections.

Constructors

this
this()

Default constructor.

Destructor

~this
~this()

Destructor.

Members

Functions

accept
Status accept(TcpSocket socket)

Accept a new connection.

getLocalPort
ushort getLocalPort()

Get the port to which the socket is bound locally.

isBlocking
bool isBlocking()

Tell whether the socket is in blocking or non-blocking mode.

listen
Status listen(ushort port, IpAddress address)

Start listening for connections.

setBlocking
void setBlocking(bool blocking)

Tell whether the socket is in blocking or non-blocking mode.

Variables

sfPtr
sfTcpListener* sfPtr;
Undocumented in source.

Inherited Members

From Socket

Status
enum Status

Status codes that may be returned by socket functions.

AnyPort
enum AnyPort;

Special value that tells the system to pick any available port.

setBlocking
void setBlocking(bool blocking)

Set the blocking state of the socket.

isBlocking
bool isBlocking()

Tell whether the socket is in blocking or non-blocking mode.

Meta