51int main(
int argc,
char* argv[]) {
54 using Client = apps::http::STREAM::Client;
56 const Client client = apps::http::STREAM::getClient();
58 client.connect([instanceName = client.getConfig()->getInstanceName()](
59 const core::socket::SocketAddress& socketAddress,
60 const core::socket::State& state) {
62 case core::socket::State::OK:
63 VLOG(1) << instanceName <<
": connected to '" << socketAddress.toString() <<
"'";
65 case core::socket::State::DISABLED:
66 VLOG(1) << instanceName <<
": disabled";
68 case core::socket::State::ERROR:
69 VLOG(1) << instanceName <<
": " << socketAddress.toString() <<
": " << state.what();
71 case core::socket::State::FATAL:
72 VLOG(1) << instanceName <<
": " << socketAddress.toString() <<
": " << state.what();