![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
UDP test server operation. More...
Public Types | |
| enum | Op { SEND , RECV , NOP } |
Public Member Functions | |
| TestOp (std::chrono::milliseconds delay_in, Op op_in, const std::vector< uint8_t > &data_in, int error_in) | |
Public Attributes | |
| std::chrono::milliseconds | delay |
| enum TestOp::Op | op |
| std::vector< uint8_t > | data |
| int | error |
| Injected error. More... | |
UDP test server operation.
Definition at line 21 of file pcp_tests.cpp.
| enum TestOp::Op |
| Enumerator | |
|---|---|
| SEND | |
| RECV | |
| NOP | |
Definition at line 23 of file pcp_tests.cpp.
|
inline |
Definition at line 34 of file pcp_tests.cpp.
| std::vector<uint8_t> TestOp::data |
Definition at line 28 of file pcp_tests.cpp.
| std::chrono::milliseconds TestOp::delay |
Definition at line 22 of file pcp_tests.cpp.
| int TestOp::error |
Injected error.
Set this field to a non-zero value to return the errno code from send or receive operation.
Definition at line 32 of file pcp_tests.cpp.
| enum TestOp::Op TestOp::op |