_TftpServerContext Struct Reference

TFTP server context. More...

#include <tftp_server.h>

Data Fields

NetContextnetContext
 TCP/IP stack context. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
uint16_t port
 TFTP port number. More...
 
TftpServerOpenFileCallback openFileCallback
 Open file callback function. More...
 
TftpServerWriteFileCallback writeFileCallback
 Write file callback function. More...
 
TftpServerReadFileCallback readFileCallback
 Read file callback function. More...
 
TftpServerCloseFileCallback closeFileCallback
 Close file callback function. More...
 
bool_t running
 Operational state of the TFTP 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...
 
TftpClientConnection connection [TFTP_SERVER_MAX_CONNECTIONS]
 Client connections. More...
 
SocketEventDesc eventDesc [TFTP_SERVER_MAX_CONNECTIONS+1]
 The events the application is interested in. More...
 
uint8_t packet [TFTP_SERVER_MAX_PACKET_SIZE]
 Incoming TFTP packet. More...
 

Detailed Description

TFTP server context.

Definition at line 206 of file tftp_server.h.

Field Documentation

◆ closeFileCallback

TftpServerCloseFileCallback closeFileCallback

Close file callback function.

Definition at line 214 of file tftp_server.h.

◆ connection

Client connections.

Definition at line 221 of file tftp_server.h.

◆ event

OsEvent event

Event object used to poll the sockets.

Definition at line 217 of file tftp_server.h.

◆ eventDesc

The events the application is interested in.

Definition at line 222 of file tftp_server.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 209 of file tftp_server.h.

◆ netContext

NetContext* netContext

TCP/IP stack context.

Definition at line 208 of file tftp_server.h.

◆ openFileCallback

TftpServerOpenFileCallback openFileCallback

Open file callback function.

Definition at line 211 of file tftp_server.h.

◆ packet

uint8_t packet[TFTP_SERVER_MAX_PACKET_SIZE]

Incoming TFTP packet.

Definition at line 223 of file tftp_server.h.

◆ port

uint16_t port

TFTP port number.

Definition at line 210 of file tftp_server.h.

◆ readFileCallback

TftpServerReadFileCallback readFileCallback

Read file callback function.

Definition at line 213 of file tftp_server.h.

◆ running

bool_t running

Operational state of the TFTP server.

Definition at line 215 of file tftp_server.h.

◆ socket

Socket* socket

Listening socket.

Definition at line 220 of file tftp_server.h.

◆ stop

bool_t stop

Stop request.

Definition at line 216 of file tftp_server.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 219 of file tftp_server.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 218 of file tftp_server.h.

◆ writeFileCallback

TftpServerWriteFileCallback writeFileCallback

Write file callback function.

Definition at line 212 of file tftp_server.h.


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