Class BoundPeerExtensions
This extension class activates transport-oriented methods on BoundPeer.
Namespace: Libplanet.Net.Transports
Assembly: Libplanet.dll
Syntax
public static class BoundPeerExtensions : object
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. |