summaryrefslogtreecommitdiff
path: root/i/simulotron/src/comc/comc.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/comc/comc.hh')
-rw-r--r--i/simulotron/src/comc/comc.hh20
1 files changed, 8 insertions, 12 deletions
diff --git a/i/simulotron/src/comc/comc.hh b/i/simulotron/src/comc/comc.hh
index 3edd2c1..a7e0076 100644
--- a/i/simulotron/src/comc/comc.hh
+++ b/i/simulotron/src/comc/comc.hh
@@ -26,27 +26,23 @@
* }}} */
#include "aiguillage/aiguillage.hh"
+#include "comc/struct_message.hh"
-template <class C>
-class ComC : public C
+class ComC
{
private:
Aiguillage aiguillage_;
public:
- /// Constructeur
+ /// Constructeur client
ComC(const std::string & address, int port, const std::string & name);
+ /// Constructeur serveur
+ ComC(SocketServer & socket, const std::string & name);
/// Initialise la communication avec le hub
void InitHub(void);
/// Envoie un truc dans le réseau
- template <class T>
- void send(const T & message, const std::string & destname);
- // Recoie quelque chose et appelle une fonction callback
- // void receive(void);
+ void send(const msgX & message, const std::string & destname);
+ /// Récupération de la GS
+ int receiveGS(GSMessage & gsm, std::string & source, std::string & dest, int & msgId);
};
-/// Contient les fonction de base de la classe
-#include "comc/comc.tcc"
-/// Contient les fonctions send spécialisé.
-#include "comc/send.tcc"
-
#endif //COMC_HH