mikroSDK Reference Manual
modbus_server_transport.h
Go to the documentation of this file.
1
31#ifndef _MODBUS_SERVER_TRANSPORT_H
32#define _MODBUS_SERVER_TRANSPORT_H
33
34//Dependencies
35#include "core/net.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//Modbus/TCP server related functions
44void modbusServerAcceptConnection(ModbusServerContext *context);
45
46error_t modbusServerShutdownConnection(ModbusClientConnection *connection);
47void modbusServerCloseConnection(ModbusClientConnection *connection);
48
49error_t modbusServerSendData(ModbusClientConnection *connection, const void *data,
50 size_t length, size_t *written, uint_t flags);
51
52error_t modbusServerReceiveData(ModbusClientConnection *connection, void *data,
53 size_t size, size_t *received, uint_t flags);
54
55//C++ guard
56#ifdef __cplusplus
57}
58#endif
59
60#endif
error_t
Error codes.
Definition error.h:43
Modbus/TCP server.
TCP/IP stack core.