38 struct ClientParameters;
81 friend class ServiceImpl;
82 friend class ConnectionImpl;
169 bool sendMessage(
const std::string& message, std::vector<std::shared_ptr<Connection>> excludedConnections = {})
const;
179 bool sendMessage(
const std::vector<unsigned char>& buffer, std::vector<std::shared_ptr<Connection>> excludedConnections = {})
const;
194 std::shared_ptr<ClientImpl> getImpl()
const;
199 std::shared_ptr<ClientImpl> pImpl;
202 Client(
const std::string &
id,
const ClientParameters& clientParameters);
209 static std::shared_ptr<Client> createInstance(
const std::string &
id,
const ClientParameters& clientParameters);
valueRef operator=(valueRef newValue)
Sets this field to newValue.
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
std::shared_ptr< Connection > getConnection(const std::string &id) const
Gets a Connection of the client.
bool sendMessage(const std::vector< unsigned char > &buffer, std::vector< std::shared_ptr< Connection > > excludedConnections={}) const
Sends a binary message to all the connections of the client.
unsigned int getNumConnections() const
Gets the number of client connections.
void disconnect()
Disconnects the client.
bool isConnected() const
Gets the state of the Client: connected or disconnected.
const std::string & getApplicationName() const
HTML5 client: Returns the domain name of the web host to which the client is connected.
std::shared_ptr< Connection > getConnection(unsigned int index) const
Gets a Connection of the client.
const std::string & getEnvironment() const
HTML5 client: Returns the value of the user-agent header sent by the client web browser.
bool sendMessage(const std::string &message, std::vector< std::shared_ptr< Connection > > excludedConnections={}) const
Sends a text message to all the connections of the client.
bool isVideoStreamingSupported() const
Returns if the client supports video streaming.
std::shared_ptr< ClientSettings > getSettings() const
Gets the client settings.
bool isImageStreamingSupported() const
Returns if the client supports image streaming.
const std::string & getId() const
Gets the id of the client.
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
#define RENDERSERVICE_API