C# TCP Client listening for data
问题 I would like to connect to a specific barcode reader at my work but currently I'm facing some problems to understand how TCP stream reading works with C#. I've looked for many code samples on stackoverflow and as I can see, people oftenly open a connection, send a command and then ask for the reply. The point is, the barcode reader just accept a TCP connection and then send the data with my data. I would like find the most efficient way to use TcpClient or NetworkStream to read in a