Home
last modified time | relevance | path

Searched refs:IPEndpoint (Results 1 – 25 of 111) sorted by relevance

12345

/external/openscreen/platform/base/
Dip_address.h146 struct IPEndpoint { struct
152 static const IPEndpoint kAnyV4(); argument
153 static const IPEndpoint kAnyV6();
158 static ErrorOr<IPEndpoint> Parse(const std::string& s);
163 bool operator==(const IPEndpoint& a, const IPEndpoint& b);
164 bool operator!=(const IPEndpoint& a, const IPEndpoint& b);
166 bool operator<(const IPEndpoint& a, const IPEndpoint& b);
167 inline bool operator>(const IPEndpoint& a, const IPEndpoint& b) {
170 inline bool operator<=(const IPEndpoint& a, const IPEndpoint& b) {
173 inline bool operator>=(const IPEndpoint& a, const IPEndpoint& b) {
[all …]
Dip_address_unittest.cc261 IPEndpoint endpoint; in TEST()
263 ASSERT_TRUE((IPEndpoint{{192, 168, 0, 1}, 80})); in TEST()
264 ASSERT_TRUE((IPEndpoint{{192, 168, 0, 1}, 0})); in TEST()
265 ASSERT_TRUE((IPEndpoint{{}, 80})); in TEST()
269 IPEndpoint expected{IPAddress(std::array<uint8_t, 4>{{1, 2, 3, 4}}), 5678}; in TEST()
270 ErrorOr<IPEndpoint> result = IPEndpoint::Parse("1.2.3.4:5678"); in TEST()
274 expected = IPEndpoint{ in TEST()
276 result = IPEndpoint::Parse("[abcd::1]:99"); in TEST()
280 expected = IPEndpoint{ in TEST()
282 result = IPEndpoint::Parse("[::]:5791"); in TEST()
[all …]
Dip_address.cc149 const IPEndpoint IPEndpoint::kAnyV4() { in kAnyV4()
150 return IPEndpoint{}; in kAnyV4()
154 const IPEndpoint IPEndpoint::kAnyV6() { in kAnyV6()
155 return IPEndpoint{IPAddress::kAnyV6(), 0}; in kAnyV6()
158 IPEndpoint::operator bool() const { in operator bool()
163 ErrorOr<IPEndpoint> IPEndpoint::Parse(const std::string& s) { in Parse()
205 return IPEndpoint{address.value(), static_cast<uint16_t>(port)}; in Parse()
208 bool operator==(const IPEndpoint& a, const IPEndpoint& b) { in operator ==()
212 bool operator!=(const IPEndpoint& a, const IPEndpoint& b) { in operator !=()
228 bool operator<(const IPEndpoint& a, const IPEndpoint& b) { in operator <()
[all …]
Dudp_packet.h37 const IPEndpoint& source() const { return source_; } in source()
38 void set_source(IPEndpoint endpoint) { source_ = std::move(endpoint); } in set_source()
40 const IPEndpoint& destination() const { return destination_; } in destination()
41 void set_destination(IPEndpoint endpoint) { in set_destination()
53 IPEndpoint source_ = {};
54 IPEndpoint destination_ = {};
/external/openscreen/osp/impl/quic/testing/
Dfake_quic_connection_factory.h22 const IPEndpoint& controller_endpoint);
31 const IPEndpoint& endpoint);
34 const IPEndpoint& endpoint,
43 const IPEndpoint controller_endpoint_;
44 IPEndpoint receiver_endpoint_;
66 const std::vector<IPEndpoint>& endpoints) override;
68 const IPEndpoint& endpoint,
93 const std::vector<IPEndpoint>& endpoints) override;
95 const IPEndpoint& endpoint,
Dfake_quic_connection_factory.cc16 const IPEndpoint& controller_endpoint) in FakeQuicConnectionFactoryBridge()
49 const IPEndpoint& endpoint) { in SetServerDelegate()
133 const IPEndpoint& endpoint, in Connect()
160 const std::vector<IPEndpoint>& endpoints) { in SetServerDelegate()
165 const IPEndpoint& endpoint, in Connect()
192 const std::vector<IPEndpoint>& endpoints) { in SetServerDelegate()
198 endpoints.empty() ? IPEndpoint{} : endpoints[0]); in SetServerDelegate()
202 const IPEndpoint& endpoint, in Connect()
/external/openscreen/cast/streaming/
Denvironment.h28 virtual void OnReceivedPacket(const IPEndpoint& source,
72 const IPEndpoint& local_endpoint = IPEndpoint::kAnyV6());
85 virtual IPEndpoint GetBoundLocalEndpoint() const;
90 const IPEndpoint& remote_endpoint() const { return remote_endpoint_; } in remote_endpoint()
91 void set_remote_endpoint(const IPEndpoint& endpoint) { in set_remote_endpoint()
144 IPEndpoint local_endpoint_{};
145 IPEndpoint remote_endpoint_{};
/external/openscreen/discovery/dnssd/public/
Ddns_sd_instance_endpoint.h29 std::vector<IPEndpoint> address);
36 std::vector<IPEndpoint> endpoint);
42 std::vector<IPEndpoint> endpoint,
54 std::vector<IPEndpoint>{std::move(endpoints)...}) {} in DnsSdInstanceEndpoint()
63 IPEndpoint endpoint, in DnsSdInstanceEndpoint()
71 GetVectorWithCapacity<IPEndpoint>(sizeof...(Types) + 1), in DnsSdInstanceEndpoint()
87 const std::vector<IPEndpoint>& endpoints() const { return endpoints_; } in endpoints()
100 std::vector<IPEndpoint> endpoints, in DnsSdInstanceEndpoint()
102 IPEndpoint endpoint, in DnsSdInstanceEndpoint()
121 std::vector<IPEndpoint> endpoints, in DnsSdInstanceEndpoint()
[all …]
Ddns_sd_instance_endpoint_unittest.cc19 IPEndpoint ep1{{192, 168, 80, 32}, 80}; in TEST()
20 IPEndpoint ep2{{192, 168, 80, 32}, 79}; in TEST()
21 IPEndpoint ep3{{192, 168, 80, 33}, 79}; in TEST()
58 IPEndpoint endpoint1{{192, 168, 12, 21}, 80}; in TEST()
59 IPEndpoint endpoint2{{227, 0, 0, 1}, 80}; in TEST()
64 std::vector<IPEndpoint>{endpoint1, endpoint2}); in TEST()
68 std::vector<IPEndpoint>{endpoint1, endpoint2}, in TEST()
/external/openscreen/platform/test/
Dmock_tls_connection.h17 MockTlsConnection(IPEndpoint local_address, IPEndpoint remote_address) in MockTlsConnection()
27 IPEndpoint GetLocalEndpoint() const override { return local_address_; } in GetLocalEndpoint()
28 IPEndpoint GetRemoteEndpoint() const override { return remote_address_; } in GetRemoteEndpoint()
43 const IPEndpoint local_address_;
44 const IPEndpoint remote_address_;
/external/openscreen/cast/common/channel/testing/
Dfake_cast_socket.h32 FakeCastSocket(const IPEndpoint& local_endpoint, in FakeCastSocket()
33 const IPEndpoint& remote_endpoint) in FakeCastSocket()
41 IPEndpoint local_endpoint;
42 IPEndpoint remote_endpoint;
57 FakeCastSocketPair(const IPEndpoint& local_endpoint, in FakeCastSocketPair()
58 const IPEndpoint& remote_endpoint) in FakeCastSocketPair()
93 IPEndpoint local_endpoint;
94 IPEndpoint remote_endpoint;
/external/openscreen/discovery/mdns/
Dmdns_responder.h19 struct IPEndpoint;
88 IPEndpoint src,
107 const IPEndpoint& src() const { return src_; } in src()
122 const IPEndpoint src_;
131 void OnMessageReceived(const MdnsMessage& message, const IPEndpoint& src);
138 const IPEndpoint& src);
141 void ProcessQueries(const IPEndpoint& src,
155 std::map<IPEndpoint, std::unique_ptr<TruncatedQuery>> truncated_queries_;
Dmdns_receiver_unittest.cc52 [&delegate](const MdnsMessage& message, const IPEndpoint& endpoint) { in TEST()
64 IPEndpoint{.address = IPAddress(192, 168, 1, 1), .port = 31337}); in TEST()
66 IPEndpoint{.address = IPAddress(kDefaultMulticastGroupIPv4), in TEST()
119 IPEndpoint{.address = IPAddress(kIPv6AddressHextets), .port = 31337}); in TEST()
121 IPEndpoint{.address = IPAddress(kDefaultMulticastGroupIPv6), in TEST()
/external/openscreen/cast/sender/public/
Dsender_socket_factory.h31 const IPEndpoint& endpoint,
34 const IPEndpoint& endpoint,
58 void Connect(const IPEndpoint& endpoint,
70 const IPEndpoint& remote_address) override;
75 IPEndpoint endpoint;
81 IPEndpoint endpoint;
93 const IPEndpoint& endpoint);
/external/openscreen/platform/impl/
Dstream_socket_posix.h25 explicit StreamSocketPosix(const IPEndpoint& local_endpoint);
27 IPEndpoint remote_address,
44 Error Connect(const IPEndpoint& remote_endpoint) override;
50 absl::optional<IPEndpoint> remote_address() const override;
51 absl::optional<IPEndpoint> local_address() const override;
76 absl::optional<IPEndpoint> remote_address_;
Dudp_socket_posix.h29 const IPEndpoint& local_endpoint,
38 IPEndpoint GetLocalEndpoint() const override;
45 const IPEndpoint& dest) override;
80 mutable IPEndpoint local_endpoint_;
Dsocket_address_posix.h24 explicit SocketAddressPosix(const IPEndpoint& endpoint);
35 IPEndpoint endpoint() const { return endpoint_; } in endpoint()
55 IPEndpoint endpoint_;
Dtls_connection_posix.cc33 TlsConnectionPosix::TlsConnectionPosix(IPEndpoint local_address, in TlsConnectionPosix()
105 IPEndpoint TlsConnectionPosix::GetLocalEndpoint() const { in GetLocalEndpoint()
108 absl::optional<IPEndpoint> endpoint = socket_->local_address(); in GetLocalEndpoint()
113 IPEndpoint TlsConnectionPosix::GetRemoteEndpoint() const { in GetRemoteEndpoint()
116 absl::optional<IPEndpoint> endpoint = socket_->remote_address(); in GetRemoteEndpoint()
/external/openscreen/osp/impl/quic/
Dquic_client.h53 ConnectRequest Connect(const IPEndpoint& endpoint,
86 ConnectRequest CreatePendingConnection(const IPEndpoint& endpoint,
88 uint64_t StartConnectionRequest(const IPEndpoint& endpoint,
106 std::map<IPEndpoint, uint64_t> endpoint_map_;
114 std::map<uint64_t, std::pair<IPEndpoint, ConnectionRequestCallback*>>
122 std::map<IPEndpoint, PendingConnectionData> pending_connections_;
Dquic_server.h72 const IPEndpoint& source) override;
80 const std::vector<IPEndpoint> connection_endpoints_;
87 std::map<IPEndpoint, uint64_t> endpoint_map_;
94 std::map<IPEndpoint, ServiceConnectionData> pending_connections_;
Dquic_connection_factory.h28 const IPEndpoint& source) = 0;
38 const std::vector<IPEndpoint>& endpoints) = 0;
41 const IPEndpoint& endpoint,
/external/openscreen/osp/public/
Dservice_info.h32 const IPEndpoint& v4_endpoint,
33 const IPEndpoint& v6_endpoint);
46 IPEndpoint v4_endpoint;
47 IPEndpoint v6_endpoint;
/external/openscreen/cast/standalone_sender/
Dmain.cc89 IPEndpoint ParseAsEndpoint(const char* string_form) { in ParseAsEndpoint()
90 IPEndpoint result{}; in ParseAsEndpoint()
91 const ErrorOr<IPEndpoint> parsed_endpoint = IPEndpoint::Parse(string_form); in ParseAsEndpoint()
180 IPEndpoint remote_endpoint = ParseAsEndpoint(iface_or_endpoint); in StandaloneSenderMain()
185 [&](IPEndpoint endpoint) { in StandaloneSenderMain()
/external/openscreen/platform/api/
Dsocket_integration_unittest.cc24 &task_runner, &client, IPEndpoint{IPAddress(kIpV4AddrAny), 0}); in TEST()
29 const IPEndpoint local_endpoint = socket->GetLocalEndpoint(); in TEST()
42 &task_runner, &client, IPEndpoint{IPAddress(kIpV6AddrAny), 0}); in TEST()
47 const IPEndpoint local_endpoint = socket->GetLocalEndpoint(); in TEST()
/external/openscreen/discovery/dnssd/impl/
Dconversion_layer_unittest.cc102 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV4AddressOctets), in TEST()
104 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV6AddressHextets), in TEST()
138 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV4AddressOctets), in TEST()
140 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV6AddressHextets), in TEST()
170 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV4AddressOctets), in TEST()
172 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV6AddressHextets), in TEST()
201 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV6AddressHextets), in TEST()
216 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV4AddressOctets), in TEST()
218 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV6AddressHextets), in TEST()
247 IPEndpoint{IPAddress(FakeDnsRecordFactory::kV4AddressOctets), in TEST()
[all …]

12345