There are MS samples like
Using an Asynchronous Client Socket
Asynchronous Client Socket Example
or other samples from Google :
reactivesockets
Event Based TCP
Advanced TCP Socket Programming with .NET
...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
There are MS samples like
Using an Asynchronous Client Socket
Asynchronous Client Socket Example
or other samples from Google :
reactivesockets
Event Based TCP
Advanced TCP Socket Programming with .NET
...
WCF is still viable, it has not changed that much and is easy to use.
https://learn.microsoft.com/en-us/answers/topics/windows-wcf.html