Show / Hide Table of Contents

Delegate DifferentAppProtocolVersionEncountered

A delegate called back when a Swarm<T> encounters a peer with different AppProtocolVersion in the network.

Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
public delegate bool DifferentAppProtocolVersionEncountered(Peer peer, AppProtocolVersion peerVersion, AppProtocolVersion localVersion);
Parameters
Type Name Description
Peer peer

An encountered peer with a different AppProtocolVersion.

AppProtocolVersion peerVersion

An encountered different AppProtocolVersion.

AppProtocolVersion localVersion

The currently running application's AppProtocolVersion.

Returns
Type Description
Boolean

Whether to recognize the encountered peer as a valid participant of the network or not. The peer is ignored if it returns false.

  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium