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
TcpClientThe TCP client.
Returns
- Task
A task that represents the asynchronous operation.
ConnectToPeerAsync(PeerAddress)
Connects to a peer.
Task ConnectToPeerAsync(PeerAddress peerAddress)
Parameters
peerAddress
PeerAddressThe peer address to connect to.
Returns
- Task
A task that represents the asynchronous operation.