This chapter contains the following code samples:
- HTTP
- HttpServer (HTTP server using
WebListener) - HttpClientSample (HTTP client using
HttpClient) - WinAppHttpClient (HTTP client with UWP app where
HttpClientsupports HTTP 2.0)
- HttpServer (HTTP server using
- Utilities
- Utilities (using
UriandIPAddress)
- Utilities (using
- DnsLookup
- DnsLookup (showing IP Addresses using
Dns)
- DnsLookup (showing IP Addresses using
- TCP
- HttpClientUsingTcp (using
TcpClientto access a HTTP Server) - TcpServer (TCP server using
TcpListenerand a custom protocol) - TcpClientSample (TCP client using
TcpClient) - WinAppTcpClient (UWP client application managing the custom protocol form TcpServer)
- WPFAppTcpClient (WPF client application managing the custom protocol from TcpServer)
- HttpClientUsingTcp (using
- UDP
- UdpSender (UDP sender using
UdpClient) - UdpReceiver (UDP receiver using
UdpClient)
- UdpSender (UDP sender using
- Sockets
- SocketServer (using
Socketto create a server) - SocketClient (using
Socketto create a client)
- SocketServer (using
To build and run the .NET Core samples, please install one of these tools:
- Visual Studio 2017 Update 5 with the .NET Core workload
- Visual Studio for Mac
- Visual Studio Code
The WinAppTcpClient sample needs Windows 10 and Visual Studio 2017 with the Universal Windows Platform development workload. The other samples can be used on other platforms. The WPFAppTcpClient needs a Windows system.
Please download and install the tools from .NET Core downloads.
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!