|
Control Surface API
2.2.2
|
Public Member Functions | |
| void | setClientConnectCallback (ConnectionEstablishedCallback callback) |
| int | getPort () |
Instances of this interface represent a TCP socket that other network clients can connect to, typically created by calling ControllerHost#createRemoteConnection.
Definition at line 12 of file RemoteSocket.java.
| int getPort | ( | ) |
Gets the actual port used for the remote socket, which might differ from the originally requested port when calling ControllerHost#createRemoteConnection(String name, int port) in case the requested port was already used.
| void setClientConnectCallback | ( | ConnectionEstablishedCallback | callback | ) |
Sets a callback which receives a remote connection object for each incoming connection.
| callback | a callback function which receives a single RemoteConnection argument |