#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) |
Definition at line 43 of file spocket_tester.h.
| spocket_tester::spocket_tester | ( | const sockets::internet_address & | where | ) |
Definition at line 61 of file spocket_tester.cpp.
| spocket_tester::~spocket_tester | ( | ) |
Definition at line 70 of file spocket_tester.cpp.
References basis::WHACK().
| bool spocket_tester::accept | ( | bool | wait = true |
) |
Definition at line 94 of file spocket_tester.cpp.
References sockets::spocket::accept(), and LOG.
| bool spocket_tester::connect | ( | ) |
Definition at line 79 of file spocket_tester.cpp.
References sockets::spocket::connect().
| bool spocket_tester::do_a_receive | ( | int | size_expected, | |
| testing_statistics & | stats | |||
| ) |
time_control::sleep_ms(PAUSE_TIME);
Definition at line 166 of file spocket_tester.cpp.
References sockets::spocket::await_readable(), testing_statistics::bytes_received, LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, PAUSE_TIME, sockets::spocket::receive(), testing_statistics::receive_time, timely::time_stamp::reset(), SOCK_EWOULDBLOCK, and timely::time_stamp::value().
Referenced by perform_test().
| bool spocket_tester::do_a_send | ( | basis::abyte * | buffer, | |
| int | size, | |||
| testing_statistics & | stats | |||
| ) |
Referenced by perform_test().
| bool spocket_tester::perform_test | ( | int | size, | |
| int | count, | |||
| testing_statistics & | stats_to_fill | |||
| ) |
Definition at line 220 of file spocket_tester.cpp.
References testing_statistics::bytes_received, testing_statistics::bytes_sent, sockets::spocket::client(), do_a_receive(), do_a_send(), mathematics::chaos::inclusive(), LOG, MAXIMUM_WINSOCK_MTU, testing_statistics::receive_time, testing_statistics::round_trip_time, testing_statistics::send_time, testing_statistics::total_runs, and timely::time_stamp::value().
1.6.3