Bachelorthesis/Modbus/include/ModbusUdpClientCommon.cin
Jonny007-MKD bcf79a7b27 Modbus/include/ModbusClientCommon.cin
Fix error in Exception handling

Fix other issues
2014-05-21 11:38:59 +00:00

34 lines
No EOL
651 B
Text

/*@!Encoding:1252*/
includes
{
#include "UdpCommon.cin"
#include "ModbusClientCommon.cin"
}
void ModbusConnectTo(char Remote_IP[], word Remote_Port)
{
UdpConnectTo(Remote_IP, Remote_Port);
}
void ModbusConnectTo(dword Remote_IP, word Remote_Port)
{
UdpConnectTo(Remote_IP, Remote_Port);
}
void ModbusSnd(byte buffer[], word length)
{
UdpSnd(buffer, length);
}
void ModbusRecv()
{
UdpRecv();
}
void OnUdpReceiveFrom(dword socket, long result, dword address, dword port, byte buffer[], dword size)
{
OnModbusReceive(socket, result, address, port, buffer, size);
if (result == 0 && size != 0)
UdpRecv();
}