00001
00046 #if !defined(_CIGI_IO_INCLUDED_)
00047 #define _CIGI_IO_INCLUDED_
00048
00049
00050 #include "CigiIncomingMsg.h"
00051 #include "CigiOutgoingMsg.h"
00052
00053
00054
00058 class CIGI_SPEC CigiIO
00059 {
00060 public:
00061
00062
00063
00064
00067 CigiIO(CigiIncomingMsg &InMsg, CigiOutgoingMsg &OutMsg);
00068
00069
00072 virtual ~CigiIO();
00073
00074
00075
00076
00077
00078
00079
00084 int Send(void);
00085
00086
00091 int Receive(void);
00092
00093
00098 int Recv(void);
00099
00100
00101 protected:
00102
00103
00104
00105
00109 CigiIncomingMsg &MsgIn;
00110
00111
00115 CigiOutgoingMsg &MsgOut;
00116
00117
00118
00119
00127 virtual int Write(Cigi_uint8 * Buffer, int Length) =0;
00128
00129
00136 virtual int Read(Cigi_uint8 * Buffer, int MaxLength) =0;
00137
00138
00139 };
00140
00141 #endif // !defined(_CIGI_IO_INCLUDED_)