curl-fuzzer C++ reference
Loading...
Searching...
No Matches
tftp_mock_server.h File Reference

Bounded loopback UDP peer for structured TFTP scenarios. More...

Go to the source code of this file.

Classes

struct  proto_fuzzer::TftpReceivedDatagram
 One bounded observation of a datagram curl sent to the in-process peer. More...
class  proto_fuzzer::TftpMockServer
 Real, nonblocking UDP peer for curl's TFTP state machine. More...

Enumerations

enum class  proto_fuzzer::TftpSocketRole { kRequest , kTransfer }
 Identifies which stable server transfer ID received a client datagram. More...

Detailed Description

Bounded loopback UDP peer for structured TFTP scenarios.

Definition in file tftp_mock_server.h.

Enumeration Type Documentation

◆ TftpSocketRole

enum class proto_fuzzer::TftpSocketRole
strong

Identifies which stable server transfer ID received a client datagram.

Tests use this distinction to prove that curl moves from the well-known request endpoint to the transfer endpoint selected by the first reply.

Enumerator
kRequest 

Endpoint placed in curl's rewritten destination address.

kTransfer 

Endpoint used for replies and the rest of the exchange.

Definition at line 30 of file tftp_mock_server.h.