#include <H3DNetworkingUtils/RemoteTCPClient.h>
Public Member Functions | |
RemoteTCPClient () | |
Constructor. | |
virtual | ~RemoteTCPClient () |
Destructor. | |
Static Public Attributes | |
static H3D::H3DNodeDatabase | database |
X3D interface. | |
Protected Member Functions | |
virtual void | clientReceiveLoop () |
Called in the recieving thread. | |
virtual void | startReceiving () |
Start the receiving thread. | |
virtual void | restartClient () |
Restarts the client reading and writing to a new socket. |
It tries to connect to a RemoteServer node on the given host using the given port, then continues with the base class's behaviour. When open is changed from false to true, the connection is attempted. When it is changed from true to false, the connection is closed. At present, only one remote connection is handled.
Examples:
void RemoteTCPClient::clientReceiveLoop | ( | ) | [protected, virtual] |
Called in the recieving thread.
while (true) {
References H3DNetworkingUtils::RemoteConnection::receiveLoop().
void RemoteTCPClient::restartClient | ( | ) | [protected, virtual] |
Restarts the client reading and writing to a new socket.
setSendTimeout(new_sockP, 100);
Implements H3DNetworkingUtils::RemoteClient.
References H3DNetworkingUtils::RemoteConnection::showError(), H3DNetworkingUtils::RemoteConnection::showInfo(), and startReceiving().