© Sri Manikanta Palakollu 2021
S. M. PalakolluPractical System Programming with Chttps://doi.org/10.1007/978-1-4842-6321-1_8

8. Socket Programming

Sri Manikanta Palakollu1 
(1)
freelance, Hanuman Junction, Hanuman Junction, 521105, Andhra Pradesh, India
 
Socket programming is a way of connecting two nodes on a network to communicate with each other. It achieves the IPC over a network. The following topics and code samples are covered in this chapter.
  • Introduction to sockets

  • IPC over network

  • Generic API for socket programming

  • OSI architectural model

  • TCP/IP model

  • Client-server architecture

  • Implementation of client-server architecture using TCP protocol

  • Implementation of client-server architecture using UDP protocol

Introduction to Sockets

A socket is a bidirectional ...

Get Practical System Programming with C: Pragmatic Example Applications in Linux and Unix-Based Operating Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.