TCP level communication with C# .NET
November 1, 2017 Leave a comment
.NET has the necessary objects to enable TCP-level messaging in the System.Net.Sockets namespace. The key objects to build an extremely simple TCP server are TcpListener and Socket. The TCP client and server can communicate in a stream-like fashion over the network using the NetworkStream object.
Here’s an example of how a TCP server can ingest the message of a single client: