WvStreams
wvshmzone.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * Shared memory zones.
6  */
7 #ifndef __WVSHMZONE_H
8 #define __WVSHMZONE_H
9 
10 #include "wverror.h"
11 
20 class WvShmZone : public WvErrorBase
21 {
22 public:
28  WvShmZone(size_t size);
29  ~WvShmZone();
30 
31 private:
32  int fd;
33 
34 public:
35  int size;
36 
37  union {
38  void *buf;
39  char *cbuf;
40  unsigned char *ucbuf;
41  };
42 };
43 
44 
45 #endif // __WVSHMZONE_h
WvShmZone
Represents a shared-memory zone via mmap().
Definition: wvshmzone.h:20
WvErrorBase
A class for managing error numbers and strings.
Definition: wverror.h:23
WvShmZone::WvShmZone
WvShmZone(size_t size)
Creates a shared memory zone.
Definition: wvshmzone.cc:16