Table of Contents

Interface ITransportService

Namespace
NLightning.Bolts.BOLT8.Interfaces
Assembly
NLightning.Bolts.dll
public interface ITransportService : IDisposable
Inherited Members

Properties

IsConnected

bool IsConnected { get; }

Property Value

bool

IsInitiator

bool IsInitiator { get; }

Property Value

bool

RemoteStaticPublicKey

PubKey? RemoteStaticPublicKey { get; }

Property Value

PubKey

Methods

InitializeAsync(TimeSpan)

Task InitializeAsync(TimeSpan networkTimeout)

Parameters

networkTimeout TimeSpan

Returns

Task

WriteMessageAsync(IMessage, CancellationToken)

Task WriteMessageAsync(IMessage message, CancellationToken cancellationToken = default)

Parameters

message IMessage
cancellationToken CancellationToken

Returns

Task

Events

MessageReceived

event EventHandler<MemoryStream>? MessageReceived

Event Type

EventHandler<MemoryStream>