Linux/UNIX IPC Programming course outline
- Course Introduction
- IPC: Introduction and Overview
- Categorizing IPC
- Choosing an IPC mechanism
- Pipes and FIFOs
- Creating and using pipes
- Connecting filters with pipes
- FIFOs
- Sockets: Concepts and UNIX Domain
- Socket types and domains
- Creating and binding a socket
- System calls: stream sockets
- UNIX domain stream sockets
- System calls: datagram sockets
- UNIX domain datagram sockets
- Further details of UNIX domain sockets
- Sockets: Internet Domain
- Internet domain sockets
- Data-representation issues
- Loopback and wildcard addresses
- Host addresses and port numbers
- Host and service conversion
- Internet domain sockets example
- Additional sockets system calls
- Alternative I/O Models
- Nonblocking I/O
- Signal-driven I/O
- I/O multiplexing: poll()
- Problems with poll() and select()
- The epoll API
- epoll events
- epoll: edge-triggered notification
- epoll: API quirks
- Event-loop programming
- POSIX IPC Overview
- POSIX Semaphores
- Named semaphores
- Semaphore operations
- Synchronizing access to a shared resource
- Unnamed semaphores
- POSIX Shared Memory
- Creating \& opening SHM objects
- Using SHM objects
- Synchronizing access to SHM
- POSIX Message Queues (*)
- Opening, closing, and unlinking a message queue
- Message queue attributes
- Sending and receiving messages
- The mqueue filesystem
- Message queue limits and defaults
- Message notification via a signal
- Message notification via a thread
- Other IPC methods (*)
- eventfd()
- Pseudoterminals
- File locks
- Cross-memory attach
- Shared file mappings
(*) Topics marked with an asterisk will be covered subject to time
constraints.
Return to the course overview