# H3DNetworkingUtils::RemoteServer Class Reference

The RemoteServer class starts a Remote server using a TCP port. More...

`#include <H3DNetworkingUtils/RemoteServer.h>`

Inheritance diagram for H3DNetworkingUtils::RemoteServer:

List of all members.

## Public Member Functions
| RemoteServer (H3D::Inst< H3D::SFInt32 > _listeningPort=0, H3D::Inst< OpenHandler > _open=0)
| Constructor.
virtual | ~RemoteServer ()
| Destructor.
## Public Attributes
auto_ptr< H3D::SFInt32 > | listeningPort
| The port on which the server will listen for connections access type: inputOutput basic type: SFInt32 default value: 9876.
auto_ptr< OpenHandler > | open
| When this turns true, the server will listen for connections access type: inputOutput basic type: SFBool default value: FALSE.
## Static Public Attributes
static H3D::H3DNodeDatabase | database
| The X3D database.
## Classes
class | OpenHandler
| Handles opening of communications. More...

## Detailed Description

The RemoteServer class starts a Remote server using a TCP port.

It starts listening on the given port for a connection from a remote client, then continues with the base class's behaviour, using a newly allocate dport for communications. When open is changed from false to true, the listening port is monitored for a connection from a client. 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

## Constructor & Destructor Documentation

RemoteServer::~RemoteServer | ( |  | ) | `[virtual]`

Destructor.

setShuttingDown(true); while (listeningLoopRunning()) { Sleep(50); }

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

- RemoteServer.h
- RemoteServer.cpp