1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef P2P_BASE_CONNECTION_INFO_H_
- #define P2P_BASE_CONNECTION_INFO_H_
- #include <vector>
- #include "absl/types/optional.h"
- #include "api/candidate.h"
- namespace cricket {
- enum class IceCandidatePairState {
- WAITING = 0,
- IN_PROGRESS,
- SUCCEEDED,
- FAILED,
-
-
- };
- struct ConnectionInfo {
- ConnectionInfo();
- ConnectionInfo(const ConnectionInfo&);
- ~ConnectionInfo();
- bool best_connection;
- bool writable;
- bool receiving;
- bool timeout;
- bool new_connection;
- size_t rtt;
- size_t sent_total_bytes;
- size_t sent_bytes_second;
- size_t sent_discarded_packets;
-
- size_t sent_total_packets;
-
- size_t sent_ping_requests_total;
- size_t sent_ping_requests_before_first_response;
-
- size_t sent_ping_responses;
- size_t recv_total_bytes;
- size_t recv_bytes_second;
- size_t packets_received;
- size_t recv_ping_requests;
- size_t recv_ping_responses;
- Candidate local_candidate;
- Candidate remote_candidate;
- void* key;
-
- IceCandidatePairState state;
-
- uint64_t priority;
-
- bool nominated;
-
- uint64_t total_round_trip_time_ms;
-
- absl::optional<uint32_t> current_round_trip_time_ms;
- };
- typedef std::vector<ConnectionInfo> ConnectionInfos;
- }
- #endif
|