45 INTRODUCTION TO SYSTEM V IPC 921 45.1
API Overview ........................................................................................................... 922
45.2
IPC Keys .................................................................................................................. 925
45.3
Associated Data Structure and Object Permissions......................................................... 927
45.4
IPC Identifiers and Client-Server Applications ................................................................ 929
45.5
Algorithm Employed by System V IPC
get
Calls.............................................................. 931
45.6
The
ipcs
and
ipcrm
Commands ................................................................................... 934
45.7
Obtaining a List of All IPC Objects .............................................................................. 935
45.8
IPC Limits ................................................................................................................. 935
45.9
Summary.................................................................................................................. 936
45.10 Exercises .................................................................................................................. 936
46 SYSTEM V MESSAGE QUEUES 937 46.1
Creating or Opening a Message Queue ...................................................................... 938
46.2
Exchanging Messages ............................................................................................... 940
46.2.1
Sending Messages................................................................................ 940
46.2.2
Receiving Messages .............................................................................. 943
46.3
Message Queue Control Operations............................................................................ 947
46.4
Message Queue Associated Data Structure .................................................................. 948
46.5
Message Queue Limits ............................................................................................... 950
46.6
Displaying All Message Queues on the System ............................................................. 951
46.7
Client-Server Programming with Message Queues ......................................................... 953
46.8
A File-Server Application Using Message Queues.......................................................... 955
46.9
Disadvantages of System V Message Queues ............................................................... 961
46.10 Summary.................................................................................................................. 962
46.11 Exercises .................................................................................................................. 963