References for TCP programming

Saga 426 Reputation points
2021-04-11T02:29:22.25+00:00

Hi all, I have project that involves an app that will be receiving data from the network. It must have the ability to receive the data and send data back tot he client. There can be more than one client.

After doing some research, I found and got running the example located here:

https://www.codeproject.com/Articles/1415/Introduction-to-TCP-client-server-in-C

This does what I want, but on further research, I understand that I will be using threads where I will listen for each client. Also, some of the examples use a never ending loop to continuously monitor for incoming data. I would like to have this functionality be event driven, so the app can quietly sit there and have an event fired when data is received over the network. The data received needs to be saved to a file for later processing. I see information on the 'net, but some of it is old and uses statements that have been deprecated.

Can anyone recommend any references that I can read (or watch if it is a video) that can illuminate me as to how to author such an app? As always, thanks! Saga

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,245 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 81,721 Reputation points
    2021-04-11T09:03:14.513+00:00
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Duane Arnold 3,211 Reputation points
    2021-04-11T04:12:37.157+00:00
    1 person found this answer helpful.
    0 comments No comments