summaryrefslogtreecommitdiff
path: root/i/marvin/src/socket/socket_databuffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/socket/socket_databuffer.hh')
-rw-r--r--i/marvin/src/socket/socket_databuffer.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/i/marvin/src/socket/socket_databuffer.hh b/i/marvin/src/socket/socket_databuffer.hh
index e28c8cd..c385db5 100644
--- a/i/marvin/src/socket/socket_databuffer.hh
+++ b/i/marvin/src/socket/socket_databuffer.hh
@@ -24,17 +24,20 @@
// Email: <nicolas@boiteameuh.org>
// }}}
+#include "socket_client.hh"
+#include "data/data_buffer.hh"
+
/// Class s'occupant en particulier de récupérer les DataBuffer via le réseau
/// TCP/IP
class SocketDataBuffer : public SocketClient
{
private:
- /// En cours de reception d'un DB
- bool isReceiving_;
/// Taille de la DB à recevoir
unsigned dbSize_;
/// Tampon provisoire
- std::string buffer_;
+ std::string strBuffer_;
+ /// DataBuffer Provisoire
+ DataBuffer dbBuffer_;
public:
/// Constructeur
SocketDataBuffer(void);
@@ -43,7 +46,7 @@ class SocketDataBuffer : public SocketClient
/// Récupère un DataBuffer
bool read (DataBuffer & dbReaded, bool bloquant);
/// Ecrit un DB dans le socket
- void write (const DataBuffer & db);
+ void write (DataBuffer & db);
};
#endif // socket_databuffer_hh