#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 44 of file bcast_spocketer.h.
| broadcast_spocket_tester::broadcast_spocket_tester | ( | const sockets::internet_address & | where, | |
| bool | unicast = false | |||
| ) |
Definition at line 60 of file bcast_spocketer.cpp.
| broadcast_spocket_tester::~broadcast_spocket_tester | ( | ) |
Definition at line 69 of file bcast_spocketer.cpp.
References basis::WHACK().
| bool broadcast_spocket_tester::connect | ( | ) |
Definition at line 77 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 137 of file bcast_spocketer.cpp.
References testing_statistics::bytes_received, LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, sockets::spocket::receive_from(), testing_statistics::receive_time, timely::time_stamp::reset(), SOCK_EWOULDBLOCK, 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 | |||
| ) |
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 192 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, 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