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
20class WvShmZone : public WvErrorBase
21{
22public:
28 WvShmZone(size_t size);
29 ~WvShmZone();
30
31private:
32 int fd;
33
34public:
35 int size;
36
37 union {
38 void *buf;
39 char *cbuf;
40 unsigned char *ucbuf;
41 };
42};
43
44
45#endif // __WVSHMZONE_h
A class for managing error numbers and strings.
Definition: wverror.h:24
Represents a shared-memory zone via mmap().
Definition: wvshmzone.h:21
WvShmZone(size_t size)
Creates a shared memory zone.
Definition: wvshmzone.cc:16