Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
TestOp Struct Reference

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

Detailed Description

UDP test server operation.

Definition at line 22 of file pcp_tests.cpp.

Member Enumeration Documentation

◆ Op

enum TestOp::Op
Enumerator
SEND 
RECV 
NOP 

Definition at line 24 of file pcp_tests.cpp.

Constructor & Destructor Documentation

◆ TestOp()

TestOp::TestOp ( std::chrono::milliseconds delay_in,
Op op_in,
const std::vector< uint8_t > & data_in,
int error_in )
inline

Definition at line 35 of file pcp_tests.cpp.

Member Data Documentation

◆ data

std::vector<uint8_t> TestOp::data

Definition at line 29 of file pcp_tests.cpp.

◆ delay

std::chrono::milliseconds TestOp::delay

Definition at line 23 of file pcp_tests.cpp.

◆ error

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 33 of file pcp_tests.cpp.

◆ op

enum TestOp::Op TestOp::op

The documentation for this struct was generated from the following file: