question

Saga-3468 avatar image
0 Votes"
Saga-3468 asked Saga-3468 commented

References for TCP programming

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

dotnet-csharpdotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
1 Vote"
Castorix31 answered Saga-3468 commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you both. I'll look into both suggestions and post back.

Upon further research, I found the following instructional video:

https://youtu.be/xgLRe7QV6QI

While it is similar to what I need, I am concerned about its age and obsolescence. Regards, Saga

0 Votes 0 ·
DuaneArnold-0443 avatar image
1 Vote"
DuaneArnold-0443 answered DuaneArnold-0443 edited
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.