Linux › Section J · Network applications and services › Topic J.5

Network sockets and Unix domain sockets

Every network program, and a great many programs that never touch a network, talk through sockets. Seeing how a server uses them, and how Unix domain sockets carry traffic between processes on one machine, explains much of what ss and lsof show on a running system.

In this topic

  • Sockets: where user space meets the network
  • Families and types
  • How a TCP server uses two kinds of socket
  • Worked example: matching ss output to the calls
  • Unix domain sockets
  • Worked example: a local echo service in Python
  • Permissions, identity and stale files
  • Abstract and unnamed sockets
  • Seeing Unix sockets on a system
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →