|
curl-fuzzer C++ reference
|
Implementation of MockServerBase — shared trampolines, shared select() helper, DriveScenario multi-handle RAII, and the scheme classifier that produces the right subclass for a Scenario. More...
Go to the source code of this file.
Functions | |
| curl_socket_t | proto_fuzzer::MockServerBaseOpenSocketTrampoline (void *clientp, curlsocktype purpose, struct curl_sockaddr *address) |
| C trampoline for CURLOPT_OPENSOCKETFUNCTION. | |
| int | proto_fuzzer::MockServerBaseSockOptTrampoline (void *clientp, curl_socket_t curlfd, curlsocktype purpose) |
| Translate explicit peer transport metadata into curl's sockopt callback contract. | |
Implementation of MockServerBase — shared trampolines, shared select() helper, DriveScenario multi-handle RAII, and the scheme classifier that produces the right subclass for a Scenario.
Definition in file mock_server_base.cc.
| curl_socket_t proto_fuzzer::MockServerBaseOpenSocketTrampoline | ( | void * | clientp, |
| curlsocktype | purpose, | ||
| struct curl_sockaddr * | address ) |
C trampoline for CURLOPT_OPENSOCKETFUNCTION.
Declared at namespace scope so it can be a friend of MockServerBase.
| clientp | Pointer to the MockServerBase instance. |
| purpose | The socket role curl is asking the mock to provide. |
| address | Curl's mutable description of the intended destination. |
Definition at line 48 of file mock_server_base.cc.
| int proto_fuzzer::MockServerBaseSockOptTrampoline | ( | void * | clientp, |
| curl_socket_t | curlfd, | ||
| curlsocktype | purpose ) |
Translate explicit peer transport metadata into curl's sockopt callback contract.
The descriptor is used only as an opaque identity; sandbox policy must not decide whether an otherwise valid in-process transport can run.
| clientp | Pointer to the MockServerBase instance. |
| curlfd | Descriptor returned by the open-socket callback. |
| purpose | Socket role assigned by curl. |
Definition at line 61 of file mock_server_base.cc.