modbus_server_transport.c
error_t socketSend(Socket *socket, const void *data, size_t length, size_t *written, uint_t flags)
Send data to a connected socket.
Definition: socket.c:1486
void modbusServerCloseConnection(ModbusClientConnection *connection)
Close network connection.
Definition: modbus_server_transport.c:236
@ MODBUS_CONNECTION_STATE_CONNECT_TLS
Definition: modbus_server.h:146
Modbus/TCP security layer.
char_t * ipAddrToString(const IpAddr *ipAddr, char_t *str)
Convert a binary IP address to a string representation.
Definition: ip.c:805
@ MODBUS_CONNECTION_STATE_SHUTDOWN_TLS
Definition: modbus_server.h:149
error_t socketReceive(Socket *socket, void *data, size_t size, size_t *received, uint_t flags)
Receive data from a connected socket.
Definition: socket.c:1692
Modbus/TCP server.
int_t socket(int_t family, int_t type, int_t protocol)
Create a socket that is bound to a specific transport service provider.
Definition: bsd_socket.c:65
@ MODBUS_CONNECTION_STATE_SHUTDOWN_RX
Definition: modbus_server.h:151
error_t modbusServerOpenSecureConnection(ModbusServerContext *context, ModbusClientConnection *connection)
Open secure connection.
Definition: modbus_server_security.c:159
Transport protocol abstraction layer.
error_t socketShutdown(Socket *socket, uint_t how)
Disable reception, transmission, or both.
Definition: socket.c:2020
error_t modbusServerShutdownConnection(ModbusClientConnection *connection)
Shutdown network connection.
Definition: modbus_server_transport.c:168
void modbusServerAcceptConnection(ModbusServerContext *context)
Accept connection request.
Definition: modbus_server_transport.c:50
error_t tlsRead(TlsContext *context, void *data, size_t size, size_t *received, uint_t flags)
Receive application data from a the remote host using TLS.
Definition: tls.c:1989
error_t modbusServerReceiveData(ModbusClientConnection *connection, void *data, size_t size, size_t *received, uint_t flags)
Receive data using the relevant transport protocol.
Definition: modbus_server_transport.c:318
Socket * socketAccept(Socket *socket, IpAddr *clientIpAddr, uint16_t *clientPort)
Permit an incoming connection attempt on a socket.
Definition: socket.c:1451
error_t modbusServerSendData(ModbusClientConnection *connection, const void *data, size_t length, size_t *written, uint_t flags)
Send data using the relevant transport protocol.
Definition: modbus_server_transport.c:284
error_t tlsWrite(TlsContext *context, const void *data, size_t length, size_t *written, uint_t flags)
Send application data to the remote host using TLS.
Definition: tls.c:1854
TCP/IP stack core.
@ MODBUS_CONNECTION_STATE_SHUTDOWN_TX
Definition: modbus_server.h:150
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:148
Debugging facilities.