tftp_server.c
OsTaskId osCreateTask(const char_t *name, OsTaskCode taskCode, void *arg, const OsTaskParameters *params)
Create a task.
Definition: os_port_chibios.c:80
error_t socketBind(Socket *socket, const IpAddr *localIpAddr, uint16_t localPort)
Associate a local address with a socket.
Definition: socket.c:1316
void tftpServerProcessPacket(TftpServerContext *context, TftpClientConnection *connection)
Process incoming packet.
Definition: tftp_server_misc.c:315
TftpServerCloseFileCallback closeFileCallback
Close file callback function.
Definition: tftp_server.h:179
error_t tftpServerInit(TftpServerContext *context, const TftpServerSettings *settings)
TFTP server initialization.
Definition: tftp_server.c:89
void tftpServerCloseConnection(TftpClientConnection *connection)
Close client connection.
Definition: tftp_server_misc.c:219
void tftpServerDeinit(TftpServerContext *context)
Release TFTP server context.
Definition: tftp_server.c:365
TFTP server.
TftpServerReadFileCallback readFileCallback
Read file callback function.
Definition: tftp_server.h:178
TftpServerWriteFileCallback writeFileCallback
Write file callback function.
Definition: tftp_server.h:177
TftpServerOpenFileCallback openFileCallback
Open file callback function.
Definition: tftp_server.h:176
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
error_t socketPoll(SocketEventDesc *eventDesc, uint_t size, OsEvent *extEvent, systime_t timeout)
Wait for one of a set of sockets to become ready to perform I/O.
Definition: socket.c:2149
void tftpServerTick(TftpServerContext *context)
Handle periodic operations.
Definition: tftp_server_misc.c:48
void tftpServerAcceptRequest(TftpServerContext *context)
Accept connection request.
Definition: tftp_server_misc.c:260
Helper functions for TFTP server.
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void tftpServerGetDefaultSettings(TftpServerSettings *settings)
Initialize settings with default values.
Definition: tftp_server.c:58
Debugging facilities.