Interface IPeerFactory
- Namespace
- NLightning.Infrastructure.Node.Interfaces
- Assembly
- NLightning.Infrastructure.dll
public interface IPeerFactory
Methods
CreateConnectedPeerAsync(PeerAddress, TcpClient)
Task<Peer> CreateConnectedPeerAsync(PeerAddress peerAddress, TcpClient tcpClient)
Parameters
peerAddress
PeerAddresstcpClient
TcpClient
Returns
CreateConnectingPeerAsync(TcpClient)
Task<Peer> CreateConnectingPeerAsync(TcpClient tcpClient)
Parameters
tcpClient
TcpClient