/external/openscreen/cast/common/channel/ |
D | connection_namespace_handler.cc | 66 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 …]
|
D | connection_namespace_handler.h | 42 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;
|
D | virtual_connection_router_unittest.cc | 23 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 …]
|
D | virtual_connection_router.h | 61 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;
|
D | virtual_connection.h | 18 struct VirtualConnection { struct 107 inline bool operator==(const VirtualConnection& a, const VirtualConnection& b) { argument 112 inline bool operator!=(const VirtualConnection& a, const VirtualConnection& b) {
|
D | connection_namespace_handler_unittest.cc | 41 (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 …]
|
D | virtual_connection_router.cc | 25 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()
|
D | cast_socket_message_port.cc | 71 VirtualConnection connection{client_sender_id_, destination_sender_id, in PostMessage() 74 router_->AddConnection(connection, VirtualConnection::AssociatedData{}); in PostMessage()
|
D | message_util.cc | 133 static_cast<int>(VirtualConnection::Type::kStrong); in MakeConnectMessage()
|
/external/openscreen/cast/standalone_sender/ |
D | looping_file_cast_agent.cc | 116 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()
|
D | looping_file_cast_agent.h | 120 const VirtualConnection& virtual_conn) const override; 179 absl::optional<VirtualConnection> remote_connection_;
|
/external/openscreen/cast/receiver/ |
D | application_agent_unittest.cc | 631 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()
|
D | application_agent.h | 119 bool IsConnectionAllowed(const VirtualConnection& virtual_conn) const final;
|
D | application_agent.cc | 170 router_.Send(VirtualConnection{message.destination_id(), in OnMessage() 177 const VirtualConnection& virtual_conn) const { in IsConnectionAllowed()
|
/external/openscreen/cast/sender/ |
D | cast_platform_client.cc | 73 VirtualConnection virtual_conn{sender_id_, kPlatformReceiverId, socket_id}; in RequestAppAvailability() 76 VirtualConnection::AssociatedData{}); in RequestAppAvailability()
|
/external/openscreen/cast/receiver/channel/ |
D | device_auth_namespace_handler.cc | 83 const VirtualConnection virtual_conn{ in OnMessage()
|