Table of Contents

Interface ITransportServiceFactory

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

Interface for a transport service factory.

public interface ITransportServiceFactory

Remarks

This interface is used to create a transport service in test environments.

Methods

CreateTransportService(bool, ReadOnlySpan<byte>, ReadOnlySpan<byte>, TcpClient)

Creates a transport service.

ITransportService CreateTransportService(bool isInitiator, ReadOnlySpan<byte> s, ReadOnlySpan<byte> rs, TcpClient tcpClient)

Parameters

isInitiator bool
s ReadOnlySpan<byte>
rs ReadOnlySpan<byte>
tcpClient TcpClient

Returns

ITransportService