This chapter will have a number of samples and driver programs to demonstrate the concepts discussed, all of which are available at https://github.com/PacktPublishing/Hands-On-Network-Programming-with-CSharp-and-.NET-Core/tree/master/Chapter 6.
As always, you're encouraged to clone this repository locally and begin playing with the source code, or writing your own in order to get comfortable with some of the topics in this chapter.
Check out the following video to see the code in action: http://bit.ly/2HYmhf7