Skip to content

Metalnem/noisesocket

Repository files navigation

Latest Version Build Status Build status Docs license

.NET Standard 1.3 implementation of the NoiseSocket Protocol (revision 2 of the spec).

NoiseSocket provides an encoding layer for the Noise Protocol Framework. NoiseSocket can encode Noise messages and associated negotiation data into a form suitable for transmission over reliable, stream-based protocols such as TCP.

NoiseSocket doesn't specify the contents of negotiation data, since different applications will encode and advertise protocol support in different ways. NoiseSocket just defines a message format to transport this data, and APIs to access it.

Samples

Acceptance (using TcpClient and TcpListener)
Switch protocol (using ordinary Socket)
Retry request (using NamedPipeClientStream and NamedPipeServerStream)

Installation

> dotnet add package NoiseSocket.NET --version 0.9.1