O'Reilly logo

Introduction to Computer Networks and Cybersecurity by J. David Irwin, Chwan-Hwa Wu

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

Chapter 4

Socket Programming

The learning goals for this chapter are as follows:

  • Understand the meaning and importance of a Socket
  • Obtain an overview of TCP socket programming and the manner in which it is employed
  • Explore single-thread TCP socket programming in detail including the TCP client and server sockets and the streams they create
  • Understand the use of multi-thread TCP socket programming
  • Examine UDP socket programming in detail and contrast it with TCP socket programming
  • Understand the use of multi-thread UDP socket programming
  • Explore the various facets of IPv6 socket programming

4.1 Motivation

When facilities for InterProcess Communication (IPC) and networking were added to UNIX, the approach was to make the application programming ...

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