tftp_server_misc.c
Go to the documentation of this file.
820 TRACE_DEBUG("TFTP Server: Sending DATA packet (%" PRIuSIZE " bytes)...\r\n", connection->packetLen);
870 TRACE_DEBUG("TFTP Server: Sending ACK packet (%" PRIuSIZE " bytes)...\r\n", connection->packetLen);
920 TRACE_DEBUG("TFTP Server: Sending ERROR packet (%" PRIuSIZE " bytes)...\r\n", connection->packetLen);
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:1491
void tftpServerProcessPacket(TftpServerContext *context, TftpClientConnection *connection)
Process incoming packet.
Definition: tftp_server_misc.c:316
void tftpServerCloseConnection(TftpClientConnection *connection)
Close client connection.
Definition: tftp_server_misc.c:220
char_t * ipAddrToString(const IpAddr *ipAddr, char_t *str)
Convert a binary IP address to a string representation.
Definition: ip.c:804
error_t tftpServerRetransmitPacket(TftpClientConnection *connection)
Retransmit the last packet.
Definition: tftp_server_misc.c:945
TFTP server.
error_t tftpServerSendErrorPacket(TftpClientConnection *connection, uint16_t errorCode, const char_t *errorMsg)
Send ERROR packet.
Definition: tftp_server_misc.c:896
void tftpServerProcessErrorPacket(TftpClientConnection *connection, const TftpErrorPacket *errorPacket, size_t length)
Process incoming ERROR packet.
Definition: tftp_server_misc.c:721
void tftpServerProcessRrqPacket(TftpServerContext *context, const IpAddr *clientIpAddr, uint16_t clientPort, const TftpRrqPacket *rrqPacket, size_t length)
Process incoming RRQ packet.
Definition: tftp_server_misc.c:378
error_t socketReceiveFrom(Socket *socket, IpAddr *srcIpAddr, uint16_t *srcPort, void *data, size_t size, size_t *received, uint_t flags)
Receive a datagram from a connectionless socket.
Definition: socket.c:1719
error_t socketConnect(Socket *socket, const IpAddr *remoteIpAddr, uint16_t remotePort)
Establish a connection to a specified socket.
Definition: socket.c:1354
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
void tftpServerTick(TftpServerContext *context)
Handle periodic operations.
Definition: tftp_server_misc.c:49
void tftpServerProcessAckPacket(TftpClientConnection *connection, const TftpAckPacket *ackPacket, size_t length)
Process incoming ACK packet.
Definition: tftp_server_misc.c:667
error_t tftpServerSendAckPacket(TftpClientConnection *connection)
Send ACK packet.
Definition: tftp_server_misc.c:854
void tftpServerAcceptRequest(TftpServerContext *context)
Accept connection request.
Definition: tftp_server_misc.c:261
error_t tftpServerSendDataPacket(TftpClientConnection *connection)
Send DATA packet.
Definition: tftp_server_misc.c:757
Helper functions for TFTP server.
void tftpServerProcessDataPacket(TftpClientConnection *connection, const TftpDataPacket *dataPacket, size_t length)
Process incoming DATA packet.
Definition: tftp_server_misc.c:562
TCP/IP stack core.
TftpClientConnection * tftpServerOpenConnection(TftpServerContext *context, const IpAddr *clientIpAddr, uint16_t clientPort)
Create client connection.
Definition: tftp_server_misc.c:112
void tftpServerProcessWrqPacket(TftpServerContext *context, const IpAddr *clientIpAddr, uint16_t clientPort, const TftpWrqPacket *wrqPacket, size_t length)
Process incoming WRQ packet.
Definition: tftp_server_misc.c:469
Debugging facilities.