summaryrefslogtreecommitdiff
path: root/i
diff options
context:
space:
mode:
authorhaller2006-03-24 14:24:41 +0000
committerhaller2006-03-24 14:24:41 +0000
commita0966ea8b0ed34d2a95a33c311e60a9a331290b8 (patch)
tree580a113a0ce3e2d9aeb9becac5a61c4c91bcfa5d /i
parent67629d2ddcc7010b5484e4b412b9d46dd76c330c (diff)
* Première déclaration de l'interface de SocketDataBuffer
* Retrait de commentaires qui servent à rien dans SocketClient
Diffstat (limited to 'i')
-rw-r--r--i/marvin/src/socket/socket_client.hh6
-rw-r--r--i/marvin/src/socket/socket_databuffer.hh9
2 files changed, 9 insertions, 6 deletions
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 charactre du socket
- //char getChar (bool bloquant);
- /// crit un charactre dans le socket
- //void putChar (char c);
- /// Rcupre 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);
+ /// Rcupre un DataBuffer
+ bool read (DataBuffer & dbReaded, bool bloquant);
+ /// Ecrit un DB dans le socket
+ void write (const DataBuffer & db);
};
#endif // socket_databuffer_hh