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

MockServerBase — common plumbing shared by every protocol-specific mock server. More...

Go to the source code of this file.

Classes

struct  proto_fuzzer::ConnectOnlyRunStats
 Results from the bounded CONNECT_ONLY public-API probe. More...
class  proto_fuzzer::MockServerBase
 Abstract base for protocol-specific in-process mock servers. More...

Enumerations

enum class  proto_fuzzer::SocketSetupDisposition
 Tell curl whether an application-provided socket still needs its normal connect/options setup or already represents a connected stream transport. More...
enum class  proto_fuzzer::MultiDrivePolicy { kPerform , kSocketAction , kFromApiPlan }
 Fixed policy for interpreting a scenario's multi-drive fields. More...

Detailed Description

MockServerBase — common plumbing shared by every protocol-specific mock server.

Owns the MockConnection, installs the OPENSOCKET / SOCKOPT trampolines, and exposes a single DriveScenario entrypoint that each subclass specialises for its protocol.

Definition in file mock_server_base.h.

Enumeration Type Documentation

◆ MultiDrivePolicy

enum class proto_fuzzer::MultiDrivePolicy
strong

Fixed policy for interpreting a scenario's multi-drive fields.

Enumerator
kPerform 

Use the ordinary curl_multi_perform loop.

kSocketAction 

Use the callback-driven curl_multi_socket_action loop.

kFromApiPlan 

Read the multi-loop choice and probes from Scenario::api_plan.

Definition at line 53 of file mock_server_base.h.

◆ SocketSetupDisposition

Tell curl whether an application-provided socket still needs its normal connect/options setup or already represents a connected stream transport.

This is explicit peer metadata: querying the descriptor from a callback is both redundant and unavailable in some fuzzing sandboxes.

Definition at line 36 of file mock_server_base.h.