00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00025
00026 #ifndef RemoteTCPClient_H
00027 #define RemoteTCPClient_H
00028
00029
00030
00031 #include "H3DNetworkingUtils/RemoteClient.h"
00032 #include "H3DNetworkingUtils/RemoteField.h"
00033
00034 #include "H3DNetworkingUtils/sockwrap.h"
00035
00036 namespace H3DNetworkingUtils {
00037
00048
00049 class H3D_NETWORKING_UTILS_DLL_SPEC RemoteTCPClient : public RemoteClient {
00050 public:
00051
00053 RemoteTCPClient();
00054
00056 virtual ~RemoteTCPClient();
00057
00059 static H3D::H3DNodeDatabase database;
00060
00061 protected:
00062
00063 static void clientReceivingLoopTH(void * client_data) {
00064 static_cast<RemoteTCPClient*>(client_data)->clientReceiveLoop();
00065 }
00066
00068 virtual void clientReceiveLoop();
00069
00071 virtual void startReceiving();
00072
00074 virtual void restartClient();
00075
00076 };
00077
00078 }
00079
00080 #endif