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::connect().
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 LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, and sockets::spocket::receive_from().
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, testing_statistics::send_time, sockets::spocket::send_to(), 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(), 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().