In Networking you learn about foundational classes for network programming, such as the Socket
class and how to create applications using TCP and UDP. You also use the HttpClient factory pattern to create HttpClient
objects with automatic retries if transient errors occur.
This chapter contains the following code samples:
- Utilities
- Utilities (using
Uri
andIPAddress
)
- Utilities (using
- DnsLookup
- DnsLookup (showing IP Addresses using
Dns
)
- DnsLookup (showing IP Addresses using
- Sockets
- EchoServer (using sockets and pipelines to create a server)
- EchoClient (using sockets and pipelines to create a client)
- TCP
- TcpServer (TCP server using
TcpListener
and a custom protocol) - TcpClientSample (TCP client using
TcpClient
)
- TcpServer (TCP server using
- UDP
- UdpReceiver (UDP receiver using
UdpClient
) - UdpSender (UDP sender using
UdpClient
)
- UdpReceiver (UDP receiver using
- HTTP
- HttpServerSample (HTTP server using Kestrel)
- HttpClientSample (HTTP client using
HttpClient
) - WinAppHttpClient (HTTP client with UWP app where
HttpClient
supports HTTP 2.0)
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.
Thank you!