LiveOrDevTrying / Tcp.NET

Tcp.NET provides an easy-to-use and customizable Tcp Server and Tcp Client. The server is created using a TcpListener. The server and client can be used for non-SSL or SSL connections and authentication (including client and server ssl certification validation) is provided for identifying the clients connected to your server. Both client and server are created in .NET Standard and use async await functionality.
Apache License 2.0
42 stars 10 forks source link

Can't initialize ParamsTcpServer and ParamsTcpClient when endOfLineBytes is provided #4

Closed dorianmk closed 1 year ago

dorianmk commented 2 years ago

Nuget Tcp.Net (6.0.40)

var port = 8989; var bytes = new byte[] { 13, 10 }; new ParamsTcpServer(port, bytes); new ParamsTcpClient("localhost", port, bytes, isSSL: false);

It causes NullReferenceException because of missing pingBytes and pongBytes null validations

LiveOrDevTrying commented 1 year ago

Great catch! I just pushed a fix. Ty!