summaryrefslogtreecommitdiff
path: root/i/simulotron/src/gs/gs_transmitter.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/gs/gs_transmitter.hh')
-rw-r--r--i/simulotron/src/gs/gs_transmitter.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/i/simulotron/src/gs/gs_transmitter.hh b/i/simulotron/src/gs/gs_transmitter.hh
index 10ec27a..86c0620 100644
--- a/i/simulotron/src/gs/gs_transmitter.hh
+++ b/i/simulotron/src/gs/gs_transmitter.hh
@@ -25,21 +25,24 @@
*
* }}} */
+#include "socket/socket_client.hh"
#include <string>
-class SocketClient;
+class SocketServer;
class GSMessage;
class GSTransmitter
{
private:
/// Socket de transmission
- SocketClient & socket_;
+ SocketClient socket_;
/// String brute récupéré
std::string strBrut_;
public:
- /// Constructeur
- GSTransmitter(SocketClient & socket);
+ /// Constructeur prenant un socket (cas d'un serveur)
+ GSTransmitter(SocketServer & socket);
+ /// Constructeur prenant une adresse (cas d'un client)
+ GSTransmitter(const std::string & address, int port);
/// Récupère une grosse string
int getGS(GSMessage & gsm);
/// envoie une grosse string