TCP/IP Server socket
OperationsDefault constructor
New(port:Int)
Name | Type | Description |
---|---|---|
port | Int | server port |
Accepts a client connection
method : public : Accept() ~ TCPSocket
Type | Description |
---|---|
TCPSocket | client socket interface |
Closes the server socket
method : public : Close() ~ Nil
Get the last error
function : GetLastError() ~ String
Type | Description |
---|---|
String | last error message, or Nil of no error |
Listens for incoming client connections
method : public : Listen(backlog:Int) ~ Bool
Name | Type | Description |
---|---|---|
backlog | Int | maximum length to queue pending connections |
Type | Description |
---|---|
Bool | true if client successfully connects, false otherwise |