24 #include "../driver_tester/driver_tester.h" 25 #include "goby/acomms/modemdriver/udp_driver.h" 28 boost::asio::io_service io1, io2;
29 boost::shared_ptr<goby::acomms::ModemDriverBase> driver1, driver2;
33 std::cout <<
"Raw in (" << driver <<
"): " << raw.ShortDebugString() << std::endl;
38 std::cout <<
"Raw out (" << driver <<
"): " << raw.ShortDebugString() << std::endl;
41 int main(
int argc,
char* argv[])
67 int port1 = rand() % 1000 + 50000;
68 int port2 = port1 + 1;
72 local_endpoint1->set_port(port1);
78 local_endpoint2->set_port(port2);
82 remote_endpoint1->set_ip(
"localhost");
83 remote_endpoint1->set_port(port2);
87 remote_endpoint2->set_ip(
"127.0.0.1");
88 remote_endpoint2->set_port(port1);
90 std::vector<int> tests_to_run;
91 tests_to_run.push_back(4);
92 tests_to_run.push_back(5);
94 DriverTester tester(driver1, driver2, cfg1, cfg2, tests_to_run,
95 goby::acomms::protobuf::DRIVER_UDP);
void set_name(const std::string &s)
Set the name of the application that the logger is serving.
void connect(Signal *signal, Slot slot)
connect a signal to a slot (e.g. function pointer)
common::FlexOstream glog
Access the Goby logger through this object.
void add_stream(logger::Verbosity verbosity=logger::VERBOSE, std::ostream *os=0)
Attach a stream object (e.g. std::cout, std::ofstream, ...) to the logger with desired verbosity...