Software Sessions

{{ show.title }}Trailer Bonus Episode {{ selectedEpisode.number }}
{{ selectedEpisode.title }}
|
{{ displaySpeed }}x
{{ selectedEpisode.title }}
By {{ selectedEpisode.author }}
Broadcast by

Summary

Stephen explains asynchronous programming with async/await and TCP sockets in C#

Show Notes

Stephen Cleary is the author of the Concurrency in C# Cookbook and a Microsoft MVP. He has also written many blog posts on asynchronous programming.

We discuss:
  • Why he calls manual thread creation legacy code
  • Using Async/Await and the Task Parallel Library instead of Threads
  • APIs to avoid when writing concurrent applications
  • Why you shouldn't write TCP Sockets
  • Continuously reading from a socket to detect errors
  • Building state machines to manage socket connections
Related Links:
Music by Crystal Cola:

What is Software Sessions?

Practical conversations about software development.