Lines Matching defs:IcmpSession

38 static std::string ObjectID(IcmpSession* i) { return "(icmp_session)"; }
41 uint16_t IcmpSession::kNextUniqueEchoId = 0;
42 const int IcmpSession::kTotalNumEchoRequests = 3;
43 const int IcmpSession::kEchoRequestIntervalSeconds = 1; // default for ping
46 const size_t IcmpSession::kTimeoutSeconds =
49 IcmpSession::IcmpSession(EventDispatcher* dispatcher)
56 echo_reply_callback_(Bind(&IcmpSession::OnEchoReplyReceived,
58 // Each IcmpSession will have a unique echo ID to identify requests and reply
63 IcmpSession::~IcmpSession() {
67 bool IcmpSession::Start(const IPAddress& destination,
82 Bind(&IcmpSession::OnEchoReplyError, weak_ptr_factory_.GetWeakPtr())));
84 timeout_callback_.Reset(Bind(&IcmpSession::ReportResultAndStopSession,
90 dispatcher_->PostTask(Bind(&IcmpSession::TransmitEchoRequestTask,
96 void IcmpSession::Stop() {
106 bool IcmpSession::AnyRepliesReceived(const IcmpSessionResult& result) {
116 bool IcmpSession::IsPacketLossPercentageGreaterThan(
138 void IcmpSession::TransmitEchoRequestTask(const IPAddress& destination) {
141 // to IcmpSession::TransmitEchoRequestTask.
157 Bind(&IcmpSession::TransmitEchoRequestTask,
163 void IcmpSession::OnEchoReplyReceived(InputData* data) {
221 std::vector<base::TimeDelta> IcmpSession::GenerateIcmpResult() {
238 void IcmpSession::OnEchoReplyError(const std::string& error_msg) {
244 void IcmpSession::ReportResultAndStopSession() {
250 // Invoke result callback after calling IcmpSession::Stop, since the callback
251 // might delete this object. (Any subsequent call to IcmpSession::Stop leads