HttpURLConnection: The Request Methods, Disconnecting from the Server, Handling Server Responses, Proxies and Streaming Mode
Socket for Clients (teaching hours: 5 hrs)
Introduction to Socket
Using Sockets: Investigating Protocols with telnet, Reading from Servers with Sockets, Writing to Servers with Sockets
Constructing and connecting Sockets: Basic Constructors, Picking a Local Interface to Connect From, Constructing Without Connecting, Socket Addresses and Proxy Servers
Getting Information about a Socket: Closed or Connected?, toString()
Setting Socket Options: TCP_NODELAY, SO_LINGER,SO_TIMEOUT, SO_RCVBUF and SO_SNDBUF, SO_ KEEPALIVE, OOBINLINE, SO_REUSEADDER and IP_TOS Class of Services
Socket in GUI Applications: Whois and A Network Client Library
Socket for Servers (teaching hours: 5 hrs)
Using ServerSockets: Serving Binary Data, Multithreaded Servers, Writing to Servers with Sockets and Closing Server Sockets
Logging: What to Log and How to Log
Constructing Server Sockets: Constructing Without Binding
Getting Information about Server Socket
Socket Options: SO_TIMEOUT, SO_RSUMEADDR, SO_RCVBUF and Class of Service
HTTP Servers: A Single File Server, A Redirector and A Full-Fledged HTTP Server
Secure Socket (teaching hours: 4 hrs)
Secure Communication
Creating Secure Client Sockets
Event Handlers
Session Management
Client Mode
Creating Secure Server Socket
Configure SSLServerSockets: Choosing the Cipher Suits, Session Management and Client Mode
Nonblocking I/O (teaching hours: 3 hrs)
An Example Client and Server
Buffers: Creating Buffers, Filling and Draining, Bulk Methods, Data Conversion, View Buffers, Compacting Buffers, Duplicating Buffers, Slicing Buffers, Marking and Resetting, Object Methods
Channels: SocketChannel, ServerSocketChannel, The Channels Class, Asynchronous Channels, Socket Options
Readiness Selection: The Selector Class, The SelectionKey Class
UDP (teaching hours: 5 hrs)
UDP Protocol
UDP Clients
UDP Servers
The DatagramPacket Class: The Constructor, The get Methods, The setter Methods
The DatagramSocket Class: The Constructor, Sending and Receiving Datagrams, Managing Connections
Socket Options: SO_TIMEOUT, SORCVBUF, SO_SNDBUF, SO_ RSUMEADDR, SO_BROADCAST and IP_TOS
UDP Applications: Simple UDP Clients, UDPServer and A UDP Echo Client
DatagramChannel: Using DatagramChannel
IP Multicast (teaching hours: 2 hrs)
Multicasting: Multicast Address and Groups, Clients and Servers, Routers and Routing
Working with Multicast Sockets: The Constructor, Communicating with a Group