EchoServerContext Struct Reference

Echo server context. More...

#include <echo_server.h>

Data Fields

NetContext * netContext
 TCP/IP stack context. More...
 
NetInterface * interface
 Underlying network interface. More...
 
uint16_t port
 Echo server port number. More...
 
bool_t running
 Operational state of the Echo 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...
 
Socket * tcpSocket
 Listening TCP socket. More...
 
EchoTcpConnection tcpConnection [ECHO_SERVER_MAX_TCP_CONNECTIONS]
 TCP connections. More...
 
Socket * udpSocket
 UDP socket. More...
 
char_t udpBuffer [ECHO_SERVER_UDP_BUFFER_SIZE]
 Memory buffer for input/output operations (UDP) More...
 

Detailed Description

Echo server context.

Definition at line 163 of file echo_server.h.

Field Documentation

◆ event

OsEvent event

Event object used to poll the sockets.

Definition at line 170 of file echo_server.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 166 of file echo_server.h.

◆ netContext

NetContext* netContext

TCP/IP stack context.

Definition at line 165 of file echo_server.h.

◆ port

uint16_t port

Echo server port number.

Definition at line 167 of file echo_server.h.

◆ running

bool_t running

Operational state of the Echo server.

Definition at line 168 of file echo_server.h.

◆ stop

bool_t stop

Stop request.

Definition at line 169 of file echo_server.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 172 of file echo_server.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 171 of file echo_server.h.

◆ tcpConnection

TCP connections.

Definition at line 175 of file echo_server.h.

◆ tcpSocket

Socket* tcpSocket

Listening TCP socket.

Definition at line 174 of file echo_server.h.

◆ udpBuffer

Memory buffer for input/output operations (UDP)

Definition at line 179 of file echo_server.h.

◆ udpSocket

Socket* udpSocket

UDP socket.

Definition at line 178 of file echo_server.h.


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