#include <bcast_spocketer.h>
Collaboration diagram for broadcast_spocket_tester:

Public Member Functions | |
| broadcast_spocket_tester (const internet_address &where, bool unicast=false) | |
| ~broadcast_spocket_tester () | |
| bool | connect () |
| bool | do_a_send (const internet_address &where_to, byte *buffer, int size, testing_statistics &stats) |
| bool | do_a_receive (int size_expected, testing_statistics &stats) |
| bool | perform_test (const internet_address &dest, int size, int count, testing_statistics &stats_to_fill) |
Definition at line 47 of file bcast_spocketer.h.
| broadcast_spocket_tester::broadcast_spocket_tester | ( | const internet_address & | where, | |
| bool | unicast = false | |||
| ) |
Definition at line 47 of file bcast_spocketer.cpp.
| broadcast_spocket_tester::~broadcast_spocket_tester | ( | ) |
| bool broadcast_spocket_tester::connect | ( | ) |
Definition at line 64 of file bcast_spocketer.cpp.
References spocket::BROADCAST, spocket::connect(), spocket::OKAY, and spocket::UNICAST.
Referenced by main().
| bool broadcast_spocket_tester::do_a_send | ( | const internet_address & | where_to, | |
| byte * | buffer, | |||
| int | size, | |||
| testing_statistics & | stats | |||
| ) |
Definition at line 75 of file bcast_spocketer.cpp.
References testing_statistics::bytes_sent, LOG, MAXIMUM_TRANSFER_WAIT, spocket::NONE_READY, spocket::OKAY, spocket::PARTIAL, testing_statistics::send_time, spocket::send_to(), portable::sleep_ms(), and time_stamp::value().
Referenced by perform_test().
| bool broadcast_spocket_tester::do_a_receive | ( | int | size_expected, | |
| testing_statistics & | stats | |||
| ) |
Definition at line 124 of file bcast_spocketer.cpp.
References testing_statistics::bytes_received, LOG, MAXIMUM_TRANSFER_WAIT, MAXIMUM_WINSOCK_MTU, spocket::NONE_READY, spocket::OKAY, spocket::receive_from(), testing_statistics::receive_time, time_stamp::reset(), portable::sleep_ms(), SOCK_EWOULDBLOCK, portable::system_error_text(), and time_stamp::value().
Referenced by perform_test().
| bool broadcast_spocket_tester::perform_test | ( | const internet_address & | dest, | |
| int | size, | |||
| int | count, | |||
| testing_statistics & | stats_to_fill | |||
| ) |
Definition at line 179 of file bcast_spocketer.cpp.
References testing_statistics::bytes_received, testing_statistics::bytes_sent, do_a_receive(), do_a_send(), chaos::inclusive(), LOG, MAXIMUM_WINSOCK_MTU, testing_statistics::receive_time, testing_statistics::round_trip_time, testing_statistics::send_time, testing_statistics::total_runs, and time_stamp::value().
Referenced by main().
1.5.1