socket.start
Jump to navigation
Jump to search
Method
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
void socket.start(int port, int connectionLimit)
The socket.start method is used to start listening on specified port.
Parameters
1) | int | port | The port for the server to listen on. |
2) | int | connectionLimit | The limit for the amount of connections. |
Return
void | This method doesn't return a value. |
Types
Client
Socket
Notes
- Sockets can be either a server (listens for connections) or a client (connects to another socket). This function starts the socket in server-mode.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.
Related
Server Related
newSocket
socket.close
socket.connect
socket.delete
socket.send
socket.sendClient
socket.start
socket.stop
Client Related
newSocket
socket.close
socket.connect
socket.delete
socket.send
socket.sendClient
socket.start
socket.stop