feisty meow concerns codebase  2.140
broadcast_spocket_tester Class Reference

#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)
 

Detailed Description

Definition at line 43 of file bcast_spocketer.h.

Constructor & Destructor Documentation

◆ broadcast_spocket_tester()

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::~broadcast_spocket_tester ( )

Definition at line 66 of file bcast_spocketer.cpp.

References basis::WHACK().

Member Function Documentation

◆ connect()

bool broadcast_spocket_tester::connect ( )

Definition at line 74 of file bcast_spocketer.cpp.

References sockets::spocket::connect().

◆ DEFINE_CLASS_NAME()

broadcast_spocket_tester::DEFINE_CLASS_NAME ( "broadcast_spocket_tester"  )

◆ do_a_receive()

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().

◆ do_a_send()

bool broadcast_spocket_tester::do_a_send ( const sockets::internet_address where_to,
basis::abyte buffer,
int  size,
testing_statistics stats 
)

◆ perform_test()


The documentation for this class was generated from the following files: