Table of Contents

Interface IPeerService

Namespace
NLightning.Bolts.BOLT1.Interfaces
Assembly
NLightning.Bolts.dll

Interface for a peer service.

public interface IPeerService

Methods

AcceptPeerAsync(TcpClient)

Accepts a peer.

Task AcceptPeerAsync(TcpClient tcpClient)

Parameters

tcpClient TcpClient

The TCP client.

Returns

Task

A task that represents the asynchronous operation.

ConnectToPeerAsync(PeerAddress)

Connects to a peer.

Task ConnectToPeerAsync(PeerAddress peerAddress)

Parameters

peerAddress PeerAddress

The peer address to connect to.

Returns

Task

A task that represents the asynchronous operation.