TcpSocketServer Class extending Socket

/ Represents a socket server object that is ready to listen to TCP connections /

Class Methods

Constructs the TcpSocketServer class

function __construct() : void


Listens to the port provided

function listen(number port) : void

Waits until the server has a waiting connection, accepts it and returns a new TcpSocket representing this connection

function accept() : TcpSocket