Hello DEV community.
I'm writing some code in C# using the .NET Core version 3.1
I need to communicate with another host which runs an old program on a TCP port that is using a custom byte-oriented protocol.
My side will be the client, since the other is a server listening on a specific port number.
I know I will need a TCPClient
function to open and establish a stream between the 2 hosts.
I have looked around for a NuGet package to help and I've found two: NetCoreServer and WatsonTcp.
Since this server is not always available, I might have to build a quick simulator app, so I'll have to do a TCPListener
function for that side too.
My question is: has anyone used these before or is there another I haven't found yet? Or maybe just use the classes already in the System.Net.Sockets
namespace (Microsoft provides examples that look fairly easy).
Any help from those with a lot more experience than me would be greatly appreciated.
This is out of my wheelhouse. I don't have much experience with this sort of thing. Good luck!