[NeoStats-Devel] [Commits] r2845 - trunk/include

[email protected] Thu, 29 Sep 2005 17:58:28 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Fish
Date: Thu Sep 29 15:58:21 2005
New Revision: 2845

Modified:
   trunk/include/neostats.h
Log:
Start commiting the minimessage stuff


Modified: trunk/include/neostats.h
==============================================================================
--- trunk/include/neostats.h	(original)
+++ trunk/include/neostats.h	Thu Sep 29 15:58:21 2005
@@ -1184,6 +1184,33 @@
 	void *moddata;
 }_Bot;
 
+typedef enum MQS_STATE {
+	MQS_DISCONNECTED,
+	MQS_CONNECTING,
+	MQS_SENTAUTH,
+	MQS_OK,
+} MQS_STATE;
+
+/* this is the NeoNet details */
+typedef struct updateserver {
+	MQS_STATE state;
+	struct sockaddr_in sendtomq;
+	OS_SOCKET sock;
+	char username[MAXUSER];
+	char password [MAXUSER];
+	char hostname[MAXHOST];
+	int port;
+}updateserver;
+
+extern updateserver mqs;
+
+/* MQ Server update sending functions */
+typedef enum MQ_MSG_TYPE {
+	UPDATE_SSREPORT=1,
+	UPDATE_OPSBREPORT,
+} MQ_MSG_TYPE;
+
+
 /* load configuration associated with this bot_setting list */
 EXPORTFUNC int ModuleConfig( bot_setting *bot_settings );
 
@@ -1680,11 +1707,6 @@
 EXPORTFUNC void SetBotModValue( Bot *pBot, void *data );
 EXPORTFUNC void *GetBotModValue( const Bot *pBot );
 
-/* MQ Server update sending functions */
-typedef enum MQ_MSG_TYPE {
-	UPDATE_SSREPORT=1,
-	UPDATE_OPSBREPORT,
-} MQ_MSG_TYPE;
 
 EXPORTFUNC void sendtoMQ( MQ_MSG_TYPE type, void *data, size_t len);
 int InitUpdate();