#include <H3DNetworkingUtils/RemoteServer.h>

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... | |
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:
| RemoteServer::~RemoteServer | ( | ) | [virtual] |
Destructor.
setShuttingDown(true); while (listeningLoopRunning()) { Sleep(50); }
1.5.6