// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.
class NodeDelegate { public: virtual ~NodeDelegate() = default;
// Forward an event (possibly asynchronously) to the specified node. virtualvoid ForwardEvent(const NodeName& node, ScopedEvent event) = 0;
// Broadcast an event to all nodes. virtualvoid BroadcastEvent(ScopedEvent event) = 0;
// Indicates that the port's status has changed recently. Use Node::GetStatus // to query the latest status of the port. Note, this event could be spurious // if another thread is simultaneously modifying the status of the port. virtualvoid PortStatusChanged(const PortRef& port_ref) = 0;
// Called after receiving a port with a remote peer, or bypassing a proxy to a // remote peer. Embedders can use this to ensure a connection to the remote // peer, reducing message queueing and ensuring prompt notification of peer // node death. virtualvoid ObserveRemoteNode(const NodeName& node) = 0;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.