tftp_client_misc.c
Go to the documentation of this file.
462 TRACE_DEBUG("TFTP Client: Sending RRQ packet (%" PRIuSIZE " bytes)...\r\n", context->outPacketLen);
518 TRACE_DEBUG("TFTP Client: Sending WRQ packet (%" PRIuSIZE " bytes)...\r\n", context->outPacketLen);
559 TRACE_DEBUG("TFTP Client: Sending DATA packet (%" PRIuSIZE " bytes)...\r\n", context->outPacketLen);
599 TRACE_DEBUG("TFTP Client: Sending ACK packet (%" PRIuSIZE " bytes)...\r\n", context->outPacketLen);
649 TRACE_DEBUG("TFTP Client: Sending ERROR packet (%" PRIuSIZE " bytes)...\r\n", context->outPacketLen);
void tftpClientProcessPacket(TftpClientContext *context, const IpAddr *srcIpAddr, uint16_t srcPort)
Process incoming packet.
Definition: tftp_client_misc.c:187
error_t tftpClientSendDataPacket(TftpClientContext *context)
Send DATA packet.
Definition: tftp_client_misc.c:543
error_t tftpClientSendErrorPacket(TftpClientContext *context, uint16_t errorCode, const char_t *errorMsg)
Send ERROR packet.
Definition: tftp_client_misc.c:625
void tftpClientProcessDataPacket(TftpClientContext *context, uint16_t srcPort, const TftpDataPacket *dataPacket, size_t length)
Process incoming DATA packet.
Definition: tftp_client_misc.c:240
error_t tftpClientSendWrqPacket(TftpClientContext *context, const char_t *filename, const char_t *mode)
Send WRQ packet.
Definition: tftp_client_misc.c:489
void tftpClientCloseConnection(TftpClientContext *context)
Close connection with the TFTP server.
Definition: tftp_client_misc.c:95
error_t tftpClientOpenConnection(TftpClientContext *context)
Open connection with the TFTP server.
Definition: tftp_client_misc.c:49
error_t tftpClientProcessEvents(TftpClientContext *context)
Process TFTP client events.
Definition: tftp_client_misc.c:113
bool_t ipCompAddr(const IpAddr *ipAddr1, const IpAddr *ipAddr2)
Compare IP addresses.
Definition: ip.c:317
void tftpClientProcessAckPacket(TftpClientContext *context, uint16_t srcPort, const TftpAckPacket *ackPacket, size_t length)
Process incoming ACK packet.
Definition: tftp_client_misc.c:309
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
TFTP client.
void tftpClientProcessErrorPacket(TftpClientContext *context, uint16_t srcPort, const TftpErrorPacket *errorPacket, size_t length)
Process incoming ERROR packet.
Definition: tftp_client_misc.c:395
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
Helper functions for TFTP client.
error_t tftpClientRetransmitPacket(TftpClientContext *context)
Retransmit the last packet.
Definition: tftp_client_misc.c:674
error_t socketSendTo(Socket *socket, const IpAddr *destIpAddr, uint16_t destPort, const void *data, size_t length, size_t *written, uint_t flags)
Send a datagram to a specific destination.
Definition: socket.c:1507
error_t tftpClientSendAckPacket(TftpClientContext *context)
Send ACK packet.
Definition: tftp_client_misc.c:583
error_t tftpClientSendRrqPacket(TftpClientContext *context, const char_t *filename, const char_t *mode)
Send RRQ packet.
Definition: tftp_client_misc.c:433
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:148
Debugging facilities.