OpenVPN 3 Core Library
Loading...
Searching...
No Matches
NoisyWire Class Reference
Collaboration diagram for NoisyWire:
[legend]

Public Member Functions

 NoisyWire (const std::string title_arg, TimePtr now_arg, RandomAPI &rand_arg, const unsigned int reorder_prob_arg, const unsigned int drop_prob_arg, const unsigned int corrupt_prob_arg)
 
template<typename T1 , typename T2 >
void xfer (T1 &a, T2 &b)
 

Private Member Functions

BufferPtr recv ()
 
unsigned int rand (const unsigned int prob)
 

Private Attributes

std::string title
 
RandomAPIrandom
 
unsigned int reorder_prob
 
unsigned int drop_prob
 
unsigned int corrupt_prob
 
std::deque< BufferPtrwire
 

Detailed Description

Definition at line 636 of file test_proto.cpp.

Constructor & Destructor Documentation

◆ NoisyWire()

NoisyWire::NoisyWire ( const std::string  title_arg,
TimePtr  now_arg,
RandomAPI rand_arg,
const unsigned int  reorder_prob_arg,
const unsigned int  drop_prob_arg,
const unsigned int  corrupt_prob_arg 
)
inline

Definition at line 639 of file test_proto.cpp.

Member Function Documentation

◆ rand()

unsigned int NoisyWire::rand ( const unsigned int  prob)
inlineprivate

Definition at line 801 of file test_proto.cpp.

Here is the caller graph for this function:

◆ recv()

BufferPtr NoisyWire::recv ( )
inlineprivate

Definition at line 749 of file test_proto.cpp.

Here is the caller graph for this function:

◆ xfer()

template<typename T1 , typename T2 >
void NoisyWire::xfer ( T1 &  a,
T2 &  b 
)
inline

Definition at line 657 of file test_proto.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ corrupt_prob

unsigned int NoisyWire::corrupt_prob
private

Definition at line 816 of file test_proto.cpp.

◆ drop_prob

unsigned int NoisyWire::drop_prob
private

Definition at line 815 of file test_proto.cpp.

◆ random

RandomAPI& NoisyWire::random
private

Definition at line 813 of file test_proto.cpp.

◆ reorder_prob

unsigned int NoisyWire::reorder_prob
private

Definition at line 814 of file test_proto.cpp.

◆ title

std::string NoisyWire::title
private

Definition at line 809 of file test_proto.cpp.

◆ wire

std::deque<BufferPtr> NoisyWire::wire
private

Definition at line 817 of file test_proto.cpp.


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