27 #ifndef _mtsSocketProxyClient_h
28 #define _mtsSocketProxyClient_h
36 class CommandWrapperBase;
53 Name(other.Name), IP(other.IP), Port(other.Port) {}
59 void ToStream(std::ostream & outputStream)
const;
62 virtual void ToStreamRaw(std::ostream & outputStream,
const char delimiter =
' ',
63 bool headerOnly =
false,
const std::string & headerPrefix =
"")
const;
67 virtual bool FromStreamRaw(std::istream & inputStream,
const char delimiter =
' ');
90 bool WaitForResponse(
double timeoutInSec);
96 bool CreateClientProxy(
const std::string & providedInterfaceName);
101 void EventEnable(
const std::string &eventName,
const char *handle);
102 void EventDisable(
const std::string &eventName,
const char *handle);
104 void CheckForEvents(
double timeoutInSec);
106 friend class CommandWrapperBase;
107 friend class MulticastCommandVoidProxy;
108 friend class MulticastCommandWriteProxy;
133 bool CheckForEventsImmediate(
double timeoutInSec);
134 bool Serialize(
const mtsGenericObject & originalObject, std::string & serializedObject);
135 bool DeSerialize(
const std::string & serializedObject,
mtsGenericObject & originalObject);
141 #endif // _mtsSocketProxyClient_h
std::vector< mtsCommandBase * > EventGenerators
Definition: mtsSocketProxyClient.h:84
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
mtsProxySerializer * Serializer
Definition: mtsSocketProxyClient.h:79
bool LocalWaiting
Definition: mtsSocketProxyClient.h:86
Definition: mtsSocketProxyClient.h:72
mtsSocketProxyClientConstructorArg(const mtsSocketProxyClientConstructorArg &other)
Definition: mtsSocketProxyClient.h:52
std::string IP
Definition: mtsSocketProxyClient.h:46
~mtsSocketProxyClientConstructorArg()
Definition: mtsSocketProxyClient.h:54
short Port
Definition: mtsSocketProxyClient.h:47
virtual void SerializeRaw(std::ostream &outputStream) const
virtual void DeSerializeRaw(std::istream &inputStream)
virtual void ToStream(std::ostream &outputStream) const
std::string Name
Definition: mtsSocketProxyClient.h:45
Base class for data object in cisstMultiTask.
Definition: mtsGenericObject.h:56
const int CMN_DYNAMIC_CREATION_ONEARG
Definition: cmnClassRegisterMacros.h:333
virtual bool FromStreamRaw(std::istream &inputStream, const char delimiter= ' ')
mtsSocketProxyClientConstructorArg(const std::string &name, const std::string &ip, short port)
Definition: mtsSocketProxyClient.h:50
Defines a continuously executing task.
mtsSocketProxyClientConstructorArg()
Definition: mtsSocketProxyClient.h:49
virtual void Startup(void)
Definition: mtsComponent.h:262
mtsCommandWriteBase * EventDisableCommand
Definition: mtsSocketProxyClient.h:100
mtsCommandWriteBase * EventEnableCommand
Definition: mtsSocketProxyClient.h:99
CMN_DECLARE_SERVICES_INSTANTIATION(mtsSocketProxyClientConstructorArg)
Definition: mtsCommandWriteBase.h:40
Definition: mtsSocketProxyCommon.h:79
Forward declarations and #define for cisstMultiTask.
Definition: mtsSocketProxyClient.h:41
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
mtsCommandWriteBase * localUnblockingCommand
Definition: mtsSocketProxyClient.h:87
Declaration of osaSocketThis is a cross-platform socket library with basic support for UDP (datagram)...
Definition: osaSocket.h:171
osaSocket Socket
Definition: mtsSocketProxyClient.h:78
Common definitions for mtsSocketProxyClient and mtsSocketProxyServer.
Definition: mtsCommandBase.h:43
Definition: mtsTaskContinuous.h:77
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
virtual void Cleanup(void)
Definition: mtsComponent.h:267
void Configure(const std::string &)
Definition: mtsSocketProxyClient.h:124
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
mtsSocketProxyInitData ServerData
Definition: mtsSocketProxyClient.h:81