JDK Tutorials - Herong's Tutorial Examples - Version 6.02, by Dr. Herong Yang
Socket Network Communication
This chapter provides tutorial notes and example codes on socket network communication. Topics include introduction to socket communication; creating a server socket and listening for connection requests; creating a client socket and connects to a server socket; creating server application for multiple connections; sample programs: ReverseEchoer.java, SocketClient.java, and ReverseEchoServer.java.
Sample programs listed in this chapter have been tested with JDK 1.4.1 to 1.8.0.
Table of Contents