Home

TCPSocketServer

TCP/IP Server socket

Operations

New

Default constructor

New(port:Int)
Parameters
NameTypeDescription
portIntserver port

Accept

Accepts a client connection

method : public : Accept() ~ TCPSocket
Return
TypeDescription
TCPSocketclient socket interface

Close

Closes the server socket

method : public : Close() ~ Nil

Listen

Listens for incoming client connections

method : public : Listen(backlog:Int) ~ Bool
Parameters
NameTypeDescription
backlogIntmaximum length to queue pending connections

Return
TypeDescription
Booltrue if client successfully connects, false otherwise