Programming Spiders, Bots, and Aggregators in Java
Chapter One
Java Socket Programming
Exploring the world of sockets
Learning how to program your network
Java Stream and filter Programming
Understanding client sockets
Discovering server sockets
The Internet is built of many related protocols, and more complex protocols are layered on
top of system level protocols. A protocol is an agreed-upon means of communicating used
by two or more systems. Most users think of the Web when they think of the Internet, but
the Web is just a protocol built on top of the Hypertext Transfer Protocol (HTTP). HTTP,
in turn, is built on top of the Transmission Control Protocol/Internet Protocol (TCP/IP),
also known as the sockets protocol.
Most of this book will deal with the Web and its facilitating protocol, HTTP. But before
we can discuss HTTP, we must first examine TCP/IP socket programming.
Frequently, the terms socket and TCP/IP programming are used interchangeably both in the
real world and in this chapter. Technically, socket-based programming allows for more protocols
than just TCP/IP. With the proliferation of TCP/IP systems in recent years, however,
TCP/IP is the only protocol tha ... read full excerpt from Programming Spiders, Bots, and Aggregators in Java ebook