_ModbusServerContext Struct Reference

Modbus/TCP server context. More...

#include <modbus_server.h>

Data Fields

ModbusServerSettings settings
 User settings. More...
 
bool_t running
 Operational state of the Modbus/TCP server. More...
 
bool_t stop
 Stop request. More...
 
OsEvent event
 Event object used to poll the sockets. More...
 
OsTaskParameters taskParams
 Task parameters. More...
 
OsTaskId taskId
 Task identifier. More...
 
Socketsocket
 Listening socket. More...
 
ModbusClientConnection connection [MODBUS_SERVER_MAX_CONNECTIONS]
 Client connections. More...
 
TlsTicketContext tlsTicketContext
 TLS ticket encryption context. More...
 
uint32_t rxMessageCount
 Total number of messages received. More...
 
uint32_t txMessageCount
 Total number of messages sent. More...
 
uint32_t commErrorCount
 Total number of communication errors. More...
 
uint32_t exceptionErrorCount
 Total number of exception errors. More...
 

Detailed Description

Modbus/TCP server context.

Definition at line 302 of file modbus_server.h.

Field Documentation

◆ commErrorCount

uint32_t commErrorCount

Total number of communication errors.

Definition at line 318 of file modbus_server.h.

◆ connection

Client connections.

Definition at line 311 of file modbus_server.h.

◆ event

OsEvent event

Event object used to poll the sockets.

Definition at line 307 of file modbus_server.h.

◆ exceptionErrorCount

uint32_t exceptionErrorCount

Total number of exception errors.

Definition at line 319 of file modbus_server.h.

◆ running

bool_t running

Operational state of the Modbus/TCP server.

Definition at line 305 of file modbus_server.h.

◆ rxMessageCount

uint32_t rxMessageCount

Total number of messages received.

Definition at line 316 of file modbus_server.h.

◆ settings

User settings.

Definition at line 304 of file modbus_server.h.

◆ socket

Socket* socket

Listening socket.

Definition at line 310 of file modbus_server.h.

◆ stop

bool_t stop

Stop request.

Definition at line 306 of file modbus_server.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 309 of file modbus_server.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 308 of file modbus_server.h.

◆ tlsTicketContext

TlsTicketContext tlsTicketContext

TLS ticket encryption context.

Definition at line 313 of file modbus_server.h.

◆ txMessageCount

uint32_t txMessageCount

Total number of messages sent.

Definition at line 317 of file modbus_server.h.


The documentation for this struct was generated from the following file: