![]() |
Bitcoin Core
29.1.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 19 of file pcp_tests.cpp.
| enum TestOp::Op |
| Enumerator | |
|---|---|
| SEND | |
| RECV | |
| NOP | |
Definition at line 21 of file pcp_tests.cpp.
|
inline |
Definition at line 32 of file pcp_tests.cpp.
| std::vector<uint8_t> TestOp::data |
Definition at line 26 of file pcp_tests.cpp.
| std::chrono::milliseconds TestOp::delay |
Definition at line 20 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 30 of file pcp_tests.cpp.
| enum TestOp::Op TestOp::op |
1.8.14