O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Network Programming: The Network Socket

The basic TCP/IP network programming facility is the network socket. The network socket represents a communication point between two programs. Programs use the sockets for input, output, or both. The socket is identified by a begin point (an IP address) and an endpoint (an IP address and a port number) such that multiple connections can be made to the same server on the same port, as shown in Figure 17-3.

Figure 17-3. TCP/IP sockets.

Java provides an API that allows the creation of sockets over TCP/IP networks. This API is integrated with the streams API to provide a clean abstraction of I/O. An application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required