26 #include "../exceptions/local/ExpressionException.h"
27 #include "../services/tasks/TaskUtil.h"
30 #include <Ice/Connection.h>
31 #include <Ice/Endpoint.h>
32 #include <IceSSL/EndpointInfo.h>
41 void failed(
const std::string&)
override {}
51 void report(ProfilerListenerPrx& profiler,
const std::string& applicationName)
53 profiler->reportNetworkTraffic(
60 std::atomic<Ice::Int>
sent {0};
81 [
this, profiler, applicationName]()
mutable
83 observerTCP->report(profiler, applicationName);
84 observerUDP->report(profiler, applicationName);
85 observerSSL->report(profiler, applicationName);
86 observerUnknown->report(profiler, applicationName);
90 reportNetworkTrafficTask->start();
95 reportNetworkTrafficTask->stop();
104 const Ice::ConnectionInfoPtr& ,
105 const Ice::EndpointPtr& e,
106 Ice::Instrumentation::ConnectionState ,
107 const Ice::Instrumentation::ConnectionObserverPtr& )
109 const auto protocol = e->getInfo()->type();
112 case Ice::TCPEndpointType:
114 case Ice::UDPEndpointType:
116 case Ice::SSLEndpointType:
121 return observerUnknown;