networking
8 tutorials tagged “networking”.
- HttpURLConnection in JavaThe legacy HTTP client: request methods, status codes, sending a POST body, reading error responses, and how it compares with HttpClient.
- InetAddress Class in JavaInetAddress represents an IP address. Learn its factory methods, host name lookups, address checks, IPv4 and IPv6, and InetSocketAddress.
- HttpClient in JavaThe modern HTTP client (Java 11): build requests, send them blocking or async, POST JSON, handle status codes and timeouts, and fetch a page title.
- Networking Concepts in JavaThe ideas behind every network program: IP addresses, ports, TCP and UDP, client and server, sockets, DNS, and the java.net classes that use them.
- Socket Programming in JavaBuild TCP clients and servers with Socket and ServerSocket: streams, timeouts, common errors, and an echo server that handles many clients at once.
- DatagramSocket and DatagramPacket in JavaSend and receive UDP packets with DatagramSocket and DatagramPacket: request and reply, timeouts, lost and cut-off packets, and when to choose UDP.
- URL Class in JavaTake a web address apart with URL and URI: protocol, host, port, path, query and fragment, relative links, encoding, and why new URL() is deprecated.
- URLConnection Class in JavaURLConnection is the classic way to read a resource from a URL: openConnection, request properties, response headers, timeouts and reading the body.