SocketBuffer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__GENERICS__SOCKET_BUFFER_H
00024 #define PROTOCOLS__GENERICS__SOCKET_BUFFER_H
00025
00026 #include "Imports.h"
00027 #include "Buffer.h"
00028
00029 namespace Protocols {
00030 namespace Generics {
00031
00032 class Socket;
00033
00035
00046 class SocketBuffer : public Buffer
00047 {
00048 CALITKO_MOCKABLE
00049
00050 public:
00051 virtual ~SocketBuffer() {}
00052
00053 virtual void tryReadFrom (Socket *socket) = 0;
00054 virtual void tryWriteTo (Socket *socket) = 0;
00055 };
00056
00057 }
00058 }
00059
00060 #endif // PROTOCOLS__GENERICS__SOCKET_BUFFER_H