Bitwig Studio Control Surface API  5.0.11
RemoteSocket Interface Reference

Public Member Functions

void setClientConnectCallback (ConnectionEstablishedCallback callback)
 
int getPort ()
 

Detailed Description

Instances of this interface represent a TCP socket that other network clients can connect to, typically created by calling ControllerHost#createRemoteConnection.

See also
ControllerHost#createRemoteConnection
Since
API version 1

Member Function Documentation

◆ getPort()

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.

Returns
the actual port used for the remote socket
Since
API version 1

◆ setClientConnectCallback()

void setClientConnectCallback ( ConnectionEstablishedCallback  callback)

Sets a callback which receives a remote connection object for each incoming connection.

Parameters
callbacka callback function which receives a single RemoteConnection argument
Since
API version 1

The documentation for this interface was generated from the following file: