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 Ping be an optional feature? #5

Closed gkapellmann closed 1 year ago

gkapellmann commented 1 year ago

I really like the Ping / Pong feature, it makes a lot of sense, but I want to be able to ue this class with other devices that use TCP communication as well.

If I was only designing my own comms, then no prob. But I will also interact with other devices that are already developed.

Could we do this optional?

Thank you

gkapellmann commented 1 year ago

Just as I created this issue, I just put a 0 in the pingIntervalSec. Seems to be working, as I dont get a Ping request now. Is this how it is meant to be used?

I didn't find anything in the doc's mentioning this.

LiveOrDevTrying commented 1 year ago

This is a great idea. I will make this change and post an update and then confirm here.

Thanks,

LiveOrDevTrying commented 1 year ago

This change has been pushed and new packages are available. Ty for using Tcp.NET! :D