tftp_server_misc.c
Go to the documentation of this file.
819 TRACE_DEBUG("TFTP Server: Sending DATA packet (%" PRIuSIZE " bytes)...\r\n", connection->packetLen);
869 TRACE_DEBUG("TFTP Server: Sending ACK packet (%" PRIuSIZE " bytes)...\r\n", connection->packetLen);
919 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:1486
void tftpServerProcessPacket(TftpServerContext *context, TftpClientConnection *connection)
Process incoming packet.
Definition: tftp_server_misc.c:315
void tftpServerCloseConnection(TftpClientConnection *connection)
Close client connection.
Definition: tftp_server_misc.c:219
char_t * ipAddrToString(const IpAddr *ipAddr, char_t *str)
Convert a binary IP address to a string representation.
Definition: ip.c:805
error_t tftpServerRetransmitPacket(TftpClientConnection *connection)
Retransmit the last packet.
Definition: tftp_server_misc.c:944
TFTP server.
error_t tftpServerSendErrorPacket(TftpClientConnection *connection, uint16_t errorCode, const char_t *errorMsg)
Send ERROR packet.
Definition: tftp_server_misc.c:895
void tftpServerProcessErrorPacket(TftpClientConnection *connection, const TftpErrorPacket *errorPacket, size_t length)
Process incoming ERROR packet.
Definition: tftp_server_misc.c:720
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:377
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:1714
error_t socketConnect(Socket *socket, const IpAddr *remoteIpAddr, uint16_t remotePort)
Establish a connection to a specified socket.
Definition: socket.c:1349
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:48
void tftpServerProcessAckPacket(TftpClientConnection *connection, const TftpAckPacket *ackPacket, size_t length)
Process incoming ACK packet.
Definition: tftp_server_misc.c:666
error_t tftpServerSendAckPacket(TftpClientConnection *connection)
Send ACK packet.
Definition: tftp_server_misc.c:853
void tftpServerAcceptRequest(TftpServerContext *context)
Accept connection request.
Definition: tftp_server_misc.c:260
error_t tftpServerSendDataPacket(TftpClientConnection *connection)
Send DATA packet.
Definition: tftp_server_misc.c:756
Helper functions for TFTP server.
void tftpServerProcessDataPacket(TftpClientConnection *connection, const TftpDataPacket *dataPacket, size_t length)
Process incoming DATA packet.
Definition: tftp_server_misc.c:561
TftpClientConnection * tftpServerOpenConnection(TftpServerContext *context, const IpAddr *clientIpAddr, uint16_t clientPort)
Create client connection.
Definition: tftp_server_misc.c:111
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:468
Debugging facilities.