Home
last modified time | relevance | path

Searched refs:VirtualConnection (Results 1 – 16 of 16) sorted by relevance

/external/openscreen/cast/common/channel/
Dconnection_namespace_handler.cc66 VirtualConnection::CloseReason GetCloseReason( in GetCloseReason()
68 VirtualConnection::CloseReason reason = in GetCloseReason()
69 VirtualConnection::CloseReason::kClosedByPeer; in GetCloseReason()
74 if (code >= VirtualConnection::CloseReason::kFirstReason && in GetCloseReason()
75 code <= VirtualConnection::CloseReason::kLastReason) { in GetCloseReason()
76 reason = static_cast<VirtualConnection::CloseReason>(code); in GetCloseReason()
99 VirtualConnection conn, in OpenRemoteConnection()
110 void ConnectionNamespaceHandler::CloseRemoteConnection(VirtualConnection conn) { in CloseRemoteConnection()
111 if (RemoveConnection(conn, VirtualConnection::kClosedBySelf)) { in CloseRemoteConnection()
167 VirtualConnection virtual_conn{std::move(message.destination_id()), in HandleConnect()
[all …]
Dconnection_namespace_handler.h42 const VirtualConnection& virtual_conn) const = 0;
55 void OpenRemoteConnection(VirtualConnection conn,
60 void CloseRemoteConnection(VirtualConnection conn);
78 void SendConnect(VirtualConnection virtual_conn);
79 void SendClose(VirtualConnection virtual_conn);
80 void SendConnectedResponse(const VirtualConnection& virtual_conn,
83 bool RemoveConnection(const VirtualConnection& conn,
84 VirtualConnection::CloseReason reason);
90 VirtualConnection conn;
Dvirtual_connection_router_unittest.cc23 static_cast<int>(VirtualConnection::ProtocolVersion::kV2_1_0),
26 static_cast<int>(VirtualConnection::ProtocolVersion::kV2_1_1),
29 static_cast<int>(VirtualConnection::ProtocolVersion::kV2_1_2),
32 static_cast<int>(VirtualConnection::ProtocolVersion::kV2_1_3),
63 VirtualConnection vc1_{"local1", "peer1", 75};
64 VirtualConnection vc2_{"local2", "peer2", 76};
65 VirtualConnection vc3_{"local1", "peer3", 75};
77 VirtualConnection::AssociatedData data1 = {}; in TEST_F()
84 VirtualConnection::AssociatedData data2 = {}; in TEST_F()
90 VirtualConnection::AssociatedData data3 = {}; in TEST_F()
[all …]
Dvirtual_connection_router.h61 void AddConnection(VirtualConnection virtual_connection,
62 VirtualConnection::AssociatedData associated_data);
66 bool RemoveConnection(const VirtualConnection& virtual_connection,
67 VirtualConnection::CloseReason reason);
80 absl::optional<const VirtualConnection::AssociatedData*> GetConnectionData(
81 const VirtualConnection& virtual_connection) const;
97 Error Send(VirtualConnection virtual_conn,
121 VirtualConnection::AssociatedData data;
Dvirtual_connection.h18 struct VirtualConnection { struct
107 inline bool operator==(const VirtualConnection& a, const VirtualConnection& b) { argument
112 inline bool operator!=(const VirtualConnection& a, const VirtualConnection& b) {
Dconnection_namespace_handler_unittest.cc41 (const VirtualConnection& virtual_conn),
96 Invoke([](const VirtualConnection& virtual_conn) { return true; })); in SetUp()
157 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
166 Invoke([](const VirtualConnection& virtual_conn) { return false; })); in TEST_F()
172 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
185 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
200 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
207 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
212 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
219 VirtualConnection{receiver_id_, sender_id_, socket_->socket_id()})); in TEST_F()
[all …]
Dvirtual_connection_router.cc25 VirtualConnection virtual_connection, in AddConnection()
26 VirtualConnection::AssociatedData associated_data) { in AddConnection()
42 const VirtualConnection& virtual_connection, in RemoveConnection()
43 VirtualConnection::CloseReason reason) { in RemoveConnection()
90 absl::optional<const VirtualConnection::AssociatedData*>
92 const VirtualConnection& virtual_connection) const { in GetConnectionData()
140 Error VirtualConnectionRouter::Send(VirtualConnection virtual_conn, in Send()
223 !GetConnectionData(VirtualConnection{local_id, message.source_id(), in OnMessage()
Dcast_socket_message_port.cc71 VirtualConnection connection{client_sender_id_, destination_sender_id, in PostMessage()
74 router_->AddConnection(connection, VirtualConnection::AssociatedData{}); in PostMessage()
Dmessage_util.cc133 static_cast<int>(VirtualConnection::Type::kStrong); in MakeConnectMessage()
/external/openscreen/cast/standalone_sender/
Dlooping_file_cast_agent.cc116 router_.Send(VirtualConnection{kPlatformSenderId, kPlatformReceiverId, in OnConnected()
142 const VirtualConnection& virtual_conn) const { in IsConnectionAllowed()
243 VirtualConnection{MakeUniqueSessionId("streaming_sender"), in HandleReceiverStatus()
329 const VirtualConnection connection = *remote_connection_; in Shutdown()
343 VirtualConnection{kPlatformSenderId, kPlatformReceiverId, in Shutdown()
Dlooping_file_cast_agent.h120 const VirtualConnection& virtual_conn) const override;
179 absl::optional<VirtualConnection> remote_connection_;
/external/openscreen/cast/receiver/
Dapplication_agent_unittest.cc631 VirtualConnection{kPlatformReceiverId, "any-sender-12345", 0})); in TEST_F()
634 VirtualConnection{transport_id, "any-sender-12345", 0})); in TEST_F()
636 VirtualConnection{"wherever i likes", "any-sender-12345", 0})); in TEST_F()
647 VirtualConnection{kPlatformReceiverId, "any-sender-12345", 0})); in TEST_F()
649 VirtualConnection{transport_id, "any-sender-12345", 0})); in TEST_F()
651 VirtualConnection{"wherever i likes", "any-sender-12345", 0})); in TEST_F()
Dapplication_agent.h119 bool IsConnectionAllowed(const VirtualConnection& virtual_conn) const final;
Dapplication_agent.cc170 router_.Send(VirtualConnection{message.destination_id(), in OnMessage()
177 const VirtualConnection& virtual_conn) const { in IsConnectionAllowed()
/external/openscreen/cast/sender/
Dcast_platform_client.cc73 VirtualConnection virtual_conn{sender_id_, kPlatformReceiverId, socket_id}; in RequestAppAvailability()
76 VirtualConnection::AssociatedData{}); in RequestAppAvailability()
/external/openscreen/cast/receiver/channel/
Ddevice_auth_namespace_handler.cc83 const VirtualConnection virtual_conn{ in OnMessage()