|
feisty meow concerns codebase 2.140
|
#include <bcast_spocketer.h>
Public Member Functions | |
| broadcast_spocket_tester (const sockets::internet_address &where, bool unicast=false) | |
| ~broadcast_spocket_tester () | |
| DEFINE_CLASS_NAME ("broadcast_spocket_tester") | |
| bool | connect () |
| bool | do_a_send (const sockets::internet_address &where_to, basis::abyte *buffer, int size, testing_statistics &stats) |
| bool | do_a_receive (int size_expected, testing_statistics &stats) |
| bool | perform_test (const sockets::internet_address &dest, int size, int count, testing_statistics &stats_to_fill) |
Definition at line 43 of file bcast_spocketer.h.
| broadcast_spocket_tester::broadcast_spocket_tester | ( | const sockets::internet_address & | where, |
| bool | unicast = false |
||
| ) |
Definition at line 56 of file bcast_spocketer.cpp.
| broadcast_spocket_tester::~broadcast_spocket_tester | ( | ) |
Definition at line 66 of file bcast_spocketer.cpp.
References basis::WHACK().
| bool broadcast_spocket_tester::connect | ( | ) |
Definition at line 74 of file bcast_spocketer.cpp.
References sockets::spocket::BROADCAST, sockets::spocket::connect(), sockets::spocket::OKAY, and sockets::spocket::UNICAST.
| broadcast_spocket_tester::DEFINE_CLASS_NAME | ( | "broadcast_spocket_tester" | ) |
| bool broadcast_spocket_tester::do_a_receive | ( | int | size_expected, |
| testing_statistics & | stats | ||
| ) |
LOG(astring("recvfrom outcome is ") + spocket::outcome_name(ret));
Definition at line 134 of file bcast_spocketer.cpp.
References testing_statistics::bytes_received, LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, sockets::spocket::NONE_READY, sockets::spocket::OKAY, sockets::spocket::receive_from(), testing_statistics::receive_time, timely::time_stamp::reset(), timely::time_control::sleep_ms(), SOCK_EWOULDBLOCK, loggers::critical_events::system_error_text(), and timely::time_stamp::value().
Referenced by perform_test().
| bool broadcast_spocket_tester::do_a_send | ( | const sockets::internet_address & | where_to, |
| basis::abyte * | buffer, | ||
| int | size, | ||
| testing_statistics & | stats | ||
| ) |
Definition at line 85 of file bcast_spocketer.cpp.
References testing_statistics::bytes_sent, LOG, MAXIMUM_TRANSFER_WAIT, sockets::spocket::NONE_READY, sockets::spocket::OKAY, sockets::spocket::PARTIAL, testing_statistics::send_time, sockets::spocket::send_to(), timely::time_control::sleep_ms(), and timely::time_stamp::value().
Referenced by perform_test().
| bool broadcast_spocket_tester::perform_test | ( | const sockets::internet_address & | dest, |
| int | size, | ||
| int | count, | ||
| testing_statistics & | stats_to_fill | ||
| ) |
Definition at line 189 of file bcast_spocketer.cpp.
References testing_statistics::bytes_received, testing_statistics::bytes_sent, do_a_receive(), do_a_send(), mathematics::chaos::inclusive(), LOG, MAXIMUM_WINSOCK_MTU, randomizer, testing_statistics::receive_time, testing_statistics::round_trip_time, testing_statistics::send_time, testing_statistics::total_runs, and timely::time_stamp::value().