From a0966ea8b0ed34d2a95a33c311e60a9a331290b8 Mon Sep 17 00:00:00 2001 From: haller Date: Fri, 24 Mar 2006 14:24:41 +0000 Subject: * Première déclaration de l'interface de SocketDataBuffer * Retrait de commentaires qui servent à rien dans SocketClient --- i/marvin/src/socket/socket_client.hh | 6 ------ i/marvin/src/socket/socket_databuffer.hh | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'i/marvin/src/socket') diff --git a/i/marvin/src/socket/socket_client.hh b/i/marvin/src/socket/socket_client.hh index 56d7afa..066f5fd 100644 --- a/i/marvin/src/socket/socket_client.hh +++ b/i/marvin/src/socket/socket_client.hh @@ -55,12 +55,6 @@ class SocketClient :public NonCopyable bool read (std::string & strReaded, bool bloquant); /// écrit dans le socket void write (const std::string & str); - /// lit un charactère du socket - //char getChar (bool bloquant); - /// écrit un charactère dans le socket - //void putChar (char c); - /// Récupère le FD du socket - //int getFD (void); }; #endif //socket_client_hh diff --git a/i/marvin/src/socket/socket_databuffer.hh b/i/marvin/src/socket/socket_databuffer.hh index 64dac86..01f239b 100644 --- a/i/marvin/src/socket/socket_databuffer.hh +++ b/i/marvin/src/socket/socket_databuffer.hh @@ -28,6 +28,15 @@ /// TCP/IP class SocketDataBuffer : public SocketClient { + public: + /// Constructeur + SocketDataBuffer(void); + /// Constructeur accept + SocketDataBuffer(SocketServer & socketServer); + /// Récupère un DataBuffer + bool read (DataBuffer & dbReaded, bool bloquant); + /// Ecrit un DB dans le socket + void write (const DataBuffer & db); }; #endif // socket_databuffer_hh -- cgit v1.2.3