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.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/i/simulotron/src/comc/comc.hh b/i/simulotron/src/comc/comc.hh
index a7e0076..4650329 100644
--- a/i/simulotron/src/comc/comc.hh
+++ b/i/simulotron/src/comc/comc.hh
@@ -27,22 +27,24 @@
#include "aiguillage/aiguillage.hh"
#include "comc/struct_message.hh"
+#include "utils/non_copyable.hh"
-class ComC
+class ComC : public NonCopyable
{
private:
Aiguillage aiguillage_;
+ std::string moduleName_;
public:
/// 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);
+ void initHub(void);
/// Envoie un truc dans le réseau
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);
+ bool receiveGS(GSMessage & gsm, std::string & source, std::string & dest, int & msgId, bool bloquant);
};
#endif //COMC_HH