UniSet  2.2.1
ModbusTCPCore.h
00001 // -------------------------------------------------------------------------
00002 #ifndef ModbusTCPCore_H_
00003 #define ModbusTCPCore_H_
00004 // -------------------------------------------------------------------------
00005 #include <queue>
00006 #include <cc++/socket.h>
00007 #include "ModbusRTUErrors.h"
00008 // -------------------------------------------------------------------------
00010 namespace ModbusTCPCore
00011 {
00012     size_t readNextData( ost::TCPStream* tcp, std::queue<unsigned char>& qrecv, int max = 100 );
00013     size_t getNextData( ost::TCPStream* tcp, std::queue<unsigned char>& qrecv, unsigned char* buf, size_t len );
00014     ModbusRTU::mbErrCode sendData( ost::TCPStream* tcp, unsigned char* buf, size_t len );
00015 }
00016 // -------------------------------------------------------------------------
00017 #endif // ModbusTCPCore_H_
00018 // -------------------------------------------------------------------------