Class pipc: base class for a simple encapsulation of the system V IPC (extensible to other IPC - eg NT)
Class pipc: base class for a simple encapsulation of the system V IPC (extensible to other IPC - eg NT).pipc is a base class that has member functions that are common to all IPC resources, such as getting a unique key, returning a status or the size of the resource.
MODIFICATIONS:
- IPC cleanup file:
Add member function addToCleanupScript which builds up a cleanup script that can be executed to delete the IPC resources if one chooses to. Set the environment variable IPC_CLEANUP_FILE to the desired file name and this file will get created and filled in a script like manner such that sourcing this file will lead to a cleanup of all IPC resources.
CW April 27, 99
~pipc()
static int remove(int id)
int get_status()
int get_size()
int get_id()
key_t get_key()
int i_created()
static key_t get_key( char *filename, key_t key = 1, int create = -1 )
static key_t get_existing_key( char *filename, key_t key )
static key_t get_new_key( char *filename, key_t key )
protected data members for access from derived class
int id
int size
key_t key
int status
time_t time_created
int created
static char* pcIpcCleanupFile
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de