Lines Matching defs:socket_info
17 #include "shill/socket_info.h"
50 SocketInfo::SocketInfo(const SocketInfo& socket_info)
51 : connection_state_(socket_info.connection_state_),
52 local_ip_address_(socket_info.local_ip_address_),
53 local_port_(socket_info.local_port_),
54 remote_ip_address_(socket_info.remote_ip_address_),
55 remote_port_(socket_info.remote_port_),
56 transmit_queue_value_(socket_info.transmit_queue_value_),
57 receive_queue_value_(socket_info.receive_queue_value_),
58 timer_state_(socket_info.timer_state_) {
63 SocketInfo& SocketInfo::operator=(const SocketInfo& socket_info) {
64 connection_state_ = socket_info.connection_state_;
65 local_ip_address_ = socket_info.local_ip_address_;
66 local_port_ = socket_info.local_port_;
67 remote_ip_address_ = socket_info.remote_ip_address_;
68 remote_port_ = socket_info.remote_port_;
69 transmit_queue_value_ = socket_info.transmit_queue_value_;
70 receive_queue_value_ = socket_info.receive_queue_value_;
71 timer_state_ = socket_info.timer_state_;
76 bool SocketInfo::IsSameSocketAs(const SocketInfo& socket_info) const {
77 return (local_ip_address_.Equals(socket_info.local_ip_address_) &&
78 local_port_ == socket_info.local_port_ &&
79 remote_ip_address_.Equals(socket_info.remote_ip_address_) &&
80 remote_port_ == socket_info.remote_port_);