feisty meow concerns codebase  2.140
spocket_tester Class Reference

#include <spocket_tester.h>

Public Member Functions

 spocket_tester (const sockets::internet_address &where)
 
 ~spocket_tester ()
 
bool connect ()
 
bool accept (bool wait=true)
 
bool do_a_send (basis::abyte *buffer, int size, testing_statistics &stats)
 
bool do_a_receive (int size_expected, testing_statistics &stats)
 
bool perform_test (int size, int count, testing_statistics &stats_to_fill)
 

Detailed Description

Definition at line 43 of file spocket_tester.h.

Constructor & Destructor Documentation

◆ spocket_tester()

spocket_tester::spocket_tester ( const sockets::internet_address where)

Definition at line 58 of file spocket_tester.cpp.

◆ ~spocket_tester()

spocket_tester::~spocket_tester ( )

Definition at line 67 of file spocket_tester.cpp.

References basis::WHACK().

Member Function Documentation

◆ accept()

bool spocket_tester::accept ( bool  wait = true)

Definition at line 91 of file spocket_tester.cpp.

References sockets::spocket::accept(), and LOG.

◆ connect()

bool spocket_tester::connect ( )

Definition at line 76 of file spocket_tester.cpp.

References sockets::spocket::connect().

◆ do_a_receive()

bool spocket_tester::do_a_receive ( int  size_expected,
testing_statistics stats 
)

Definition at line 164 of file spocket_tester.cpp.

References LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, and sockets::spocket::receive().

Referenced by perform_test().

◆ do_a_send()

bool spocket_tester::do_a_send ( basis::abyte buffer,
int  size,
testing_statistics stats 
)

◆ perform_test()


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