Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | List of all members
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
 Injected error. More...
 

Detailed Description

UDP test server operation.

Definition at line 19 of file pcp_tests.cpp.

Member Enumeration Documentation

◆ Op

enum TestOp::Op
Enumerator
SEND 
RECV 
NOP 

Definition at line 21 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 32 of file pcp_tests.cpp.

Member Data Documentation

◆ data

std::vector<uint8_t> TestOp::data

Definition at line 26 of file pcp_tests.cpp.

◆ delay

std::chrono::milliseconds TestOp::delay

Definition at line 20 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 30 of file pcp_tests.cpp.

◆ op

enum TestOp::Op TestOp::op

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