summaryrefslogtreecommitdiff
path: root/Ivy/Ivy.h
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:57:23 +0000
committerfcolin2007-02-01 12:57:23 +0000
commit1e1ff4438b0ccea93ccf5a746ff6c1fd8a3a4666 (patch)
tree02e71f307fb6dec04a186a42dea9d1d471267d18 /Ivy/Ivy.h
parentbac78b00bd3f02e949ffa370fb2ae18641c32b23 (diff)
downloadivy-cplusplus-1e1ff4438b0ccea93ccf5a746ff6c1fd8a3a4666.zip
ivy-cplusplus-1e1ff4438b0ccea93ccf5a746ff6c1fd8a3a4666.tar.gz
ivy-cplusplus-1e1ff4438b0ccea93ccf5a746ff6c1fd8a3a4666.tar.bz2
ivy-cplusplus-1e1ff4438b0ccea93ccf5a746ff6c1fd8a3a4666.tar.xz
Utilisateur : Fcolin Date : 17/11/05 Heure : 15:08 Archivé dans $/Bus/Ivy Commentaire: nice Bug in nextArg not reentrant routine due to static variable (vss 13)
Diffstat (limited to 'Ivy/Ivy.h')
-rw-r--r--Ivy/Ivy.h52
1 files changed, 27 insertions, 25 deletions
diff --git a/Ivy/Ivy.h b/Ivy/Ivy.h
index fea2a93..7536f32 100644
--- a/Ivy/Ivy.h
+++ b/Ivy/Ivy.h
@@ -28,18 +28,41 @@ class _declspec(dllimport) CBufferedSocket;
#include "IvyCallback.h"
-class IvyWatcher;
-
-class IvyApplication;
class Ivy
{
+ friend class IvyWatcher;
+
+ friend class IvyApplication;
+
private:
int regexp_id;
unsigned int applicationPort;
void SendSubscriptions(IvyApplication *app);
+ bool synchronous; // use Window Shink to made CB mono thread like
+ IvyApplication * server;
+ IvyWatcher * watcher;
+ IvyDieCallback *die_callback;
+ IvyDirectMessageCallback *direct_callback;
+ IvyApplicationCallback *application_callback;
+ /* list des adresses de broadcast */
+ ivy::string domain;
+ /* nom de l'appliction */
+ ivy::string appname;
+ /* liste des clients connectes */
+ CRITICAL_SECTION m_application_cs;
+ typedef ivy::list<IvyApplication*> IvyApplicationList;
+ IvyApplicationList applications;
-public:
+ /* liste des souscriptions locale a emettre aux autres applications */
+ ivy::vector<ivy::string> regexp_out;
+ /* liste des callbacks a appeler */
+ ivy::vector< IvyMessageCallback* > callbacks;
+ /* classes de messages emis par l'application utilise pour le filtrage */
+ int messages_classes_count;
+ const char **messages_classes;
+
+protected:
void AddApplication( IvyApplication *app );
void RemoveApplication( IvyApplication *app);
@@ -75,27 +98,6 @@ public:
ivy::string ready_message;
protected:
- bool synchronous; // use Window Shink to made CB mono thread like
- IvyApplication * server;
- IvyWatcher * watcher;
- IvyDieCallback *die_callback;
- IvyDirectMessageCallback *direct_callback;
- IvyApplicationCallback *application_callback;
- /* list des adresses de broadcast */
- ivy::string domain;
- /* nom de l'appliction */
- ivy::string appname;
- /* liste des clients connectes */
- CRITICAL_SECTION m_application_cs;
- typedef ivy::list<IvyApplication*> IvyApplicationList;
- IvyApplicationList applications;
- /* liste des souscriptions locale a emettre aux autres applications */
- ivy::vector<ivy::string> regexp_out;
- /* liste des callbacks a appeler */
- ivy::vector< IvyMessageCallback* > callbacks;
- /* classes de messages emis par l'application utilise pour le filtrage */
- int messages_classes_count;
- const char **messages_classes;
};