# H3DNetworkingUtils::RemoteTCPClient Class Reference

The RemoteTCPClient class starts a Remote client using a TCP socket. More...

`#include <H3DNetworkingUtils/RemoteTCPClient.h>`

Inheritance diagram for H3DNetworkingUtils::RemoteTCPClient:

List of all members.

## 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.

## Detailed Description

The RemoteTCPClient class starts a Remote client using a TCP 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:

- RemoteMFTestServer.x3d
- RemoteMFTestClient.x3d

## Member Function Documentation

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().

The documentation for this class was generated from the following files:

- RemoteTCPClient.h
- RemoteTCPClient.cpp