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

Parameter input error #8

Closed 604980670 closed 6 months ago

604980670 commented 6 months ago

version 7.0.23 var eol = System.Encoding.UTF8.GetBytes("\r\n"); ITcpNETClient client = new TcpNETClient(new ParamsTcpClientBytes("connect.tcp.net", 8989, eol, isSSL: false);

ParamsTcpClientBytes Parameters will report errors

LiveOrDevTrying commented 6 months ago

Will review this today

LiveOrDevTrying commented 6 months ago

@604980670 Great catch! Pushed a new version which is live now:

Use this constructor:

var eol = System.Encoding.UTF8.GetBytes("\r\n"); ITcpNETClient client = new TcpNETClient(new ParamsTcpClientBytes("connect.tcp.net", 8989, eol, isSSL: false));

Make sure to set the variable onlyEmitBytes = true for client and server if you dont want messages to decode into string.

I need to still update the documentation. Please let me know if this works and if you confirm it does, I will close this issue.

Ty for using Tcp.NET!

604980670 commented 6 months ago

After the ParamsTcpClientBytes parameter is passed in, Visual Studio ID prompts that it cannot be converted from "Tcp. NET. Client. Models. ParamsTcpClientBytes" to "Tcp. NET. Client. Models. ParamsTcpClient"

LiveOrDevTrying commented 6 months ago

Reviewing, just another moment

LiveOrDevTrying commented 6 months ago

Nuget does a bad job with including updated dependent packages. New package building now - should be updated shortly. Will post when ready.

604980670 commented 6 months ago

Thank you

LiveOrDevTrying commented 6 months ago

Bug is on my CICD pipeline. 30 min more and will have a package for you.

LiveOrDevTrying commented 6 months ago

@604980670

Try deleting your bin and obj directories, update packages, clean, and rebuild. Should be working now. I'll fix my CICD pipeline - NuGet is fine.

Let met know how it goes!

LiveOrDevTrying commented 6 months ago

@604980670 .

Has this been resolved? If yes, I can close this issue.

Thanks, Rob