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 int readNextData( ost::TCPStream* tcp, std::queue<unsigned char>& qrecv, int max=100 );
00013 int getNextData( unsigned char* buf, int len, std::queue<unsigned char>& qrecv, ost::TCPStream* tcp );
00014 ModbusRTU::mbErrCode sendData( unsigned char* buf, int len, ost::TCPStream* tcp );
00015 }
00016
00017 #endif // ModbusTCPCore_H_
00018