Class BoundPeerExtensions
This extension class activates transport-oriented methods on BoundPeer.
Inherited Members
Namespace: Libplanet.Net.Transports
Assembly: Libplanet.dll
Syntax
public static class BoundPeerExtensions
Methods
| Improve this Doc View SourceQueryAppProtocolVersion(BoundPeer, Nullable<TimeSpan>)
Queries AppProtocolVersion of given BoundPeer.
Declaration
public static AppProtocolVersion QueryAppProtocolVersion(this BoundPeer peer, TimeSpan? timeout = null)
Parameters
Type | Name | Description |
---|---|---|
BoundPeer | peer | The BoundPeer to query AppProtocolVersion. |
Nullable<TimeSpan> | timeout | Timeout value for request. |
Returns
Type | Description |
---|---|
AppProtocolVersion | AppProtocolVersion of given peer. |