4 #include <unordered_set>
6 #include "modbus/ModbusTCPServerSlot.h"
13 MBTCPServer(
const std::unordered_set<uniset::ModbusRTU::ModbusAddr>& myaddr,
const std::string& inetaddr,
int port = 502,
bool verbose =
false );
16 inline void setVerbose(
bool state )
21 inline void setReply(
long val )
26 inline uniset::timeout_t setAfterSendPause( uniset::timeout_t msec )
32 void setLog( std::shared_ptr<DebugStream>& dlog );
34 void setMaxSessions(
size_t max );
38 void sigterm(
int signo );
97 std::unordered_set<uniset::ModbusRTU::ModbusAddr>
vaddr;
99 bool verbose = {
false };
100 long replyVal = { -1 };
102 typedef std::unordered_map<uniset::ModbusRTU::mbErrCode, unsigned int> ExchangeErrorMap;
103 ExchangeErrorMap errmap;
104 uniset::ModbusRTU::mbErrCode prev;
112 typedef std::unordered_map<int, std::string> FileList;
120 #endif // MBTCPServer_H_