socket.connect
(Redirected from Socket.connect)
Jump to navigation
Jump to search
Method
Server Only
Online and Offline
Available since Server 1.0.0
void socket.connect(string host, int port)
The socket.connect method is used to initiate connection to the specified host/port.
Parameters
1) | string | host | The destination host to connect to. |
2) | int | port | The destination port to connect to, between 0 and 65535. |
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 client 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