summaryrefslogtreecommitdiff
path: root/orkbasecxx/messages/InitMsg.h
diff options
context:
space:
mode:
authorbeg_g <beg_g@09dcff7a-b715-0410-9601-b79a96267cd0>2009-10-01 15:41:51 +0000
committerbeg_g <beg_g@09dcff7a-b715-0410-9601-b79a96267cd0>2009-10-01 15:41:51 +0000
commitd860e8b3295b218f142dd04ef5b58a44db2bca03 (patch)
tree2f9f8375699219077c816294da41cd1b4f0d349b /orkbasecxx/messages/InitMsg.h
parent7502103fdb8d5609122c6b91e710860bb95559ec (diff)
Added an initialization message which is sent to orktrack over HTTP when orkaudio is first started.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@643 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/messages/InitMsg.h')
-rw-r--r--orkbasecxx/messages/InitMsg.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/orkbasecxx/messages/InitMsg.h b/orkbasecxx/messages/InitMsg.h
new file mode 100644
index 0000000..f0e1584
--- /dev/null
+++ b/orkbasecxx/messages/InitMsg.h
@@ -0,0 +1,60 @@
+/*
+ * RfbRecorder -- A Simple RFB recording program
+ *
+ * Copyright (C) 2007, orecx LLC
+ *
+ * http://www.orecx.com/
+ *
+ */
+#ifndef __INITMSG_H__
+#define __INITMSG_H__ 1
+
+#include "messages/SyncMessage.h"
+#include "messages/AsyncMessage.h"
+
+#define INIT_MESSAGE_NAME "init"
+#define NAME_PARAM "name"
+#define HOSTNAME_PARAM "hostname"
+#define TYPE_PARAM "type"
+#define TCP_PORT_PARAM "tcpport"
+#define PROTOCOL_PARAM "protocol"
+#define FILE_SERVE_PORT_PARAM "fileserveport"
+#define CONTEXT_PATH_PARAM "contextpath"
+#define SERVE_PATH_PARAM "servepath"
+#define ABSOLUTE_PATH_PARAM "absolutepath"
+#define STREAMING_PORT_PARAM "streamingport"
+#define LOCAL_PARAM "local"
+#define USERNAME_PARAM "username"
+#define PASSWORD_PARAM "password"
+#define SSH_PORT_PARAM "sshport"
+
+class DLL_IMPORT_EXPORT_ORKBASE InitMsg : public SyncMessage
+{
+public:
+ InitMsg();
+
+ void Define(Serializer* s);
+ void Validate();
+
+ CStdString GetClassName();
+ ObjectRef NewInstance();
+ ObjectRef Process();
+
+ CStdString m_name;
+ CStdString m_hostname;
+ CStdString m_type;
+ int m_tcpPort;
+ CStdString m_protocol;
+ int m_fileServePort;
+ CStdString m_contextPath;
+ CStdString m_servePath;
+ CStdString m_absolutePath;
+ int m_streamingPort;
+ bool m_local;
+ CStdString m_username;
+ CStdString m_password;
+ int m_sshPort;
+};
+typedef boost::shared_ptr<InitMsg> InitMsgRef;
+
+#endif