1 #ifndef __SHARED_MEMORY_SERVER__
2 #define __SHARED_MEMORY_SERVER__
8 #include <securityd_client/SharedMemoryCommon.h>
10 class SharedMemoryServer
13 std::string mSegmentName
, mFileName
;
21 void WriteOffset (SegmentOffsetType offset
);
22 void WriteData (const void* data
, SegmentOffsetType length
);
25 SharedMemoryServer (const char* segmentName
, SegmentOffsetType segmentSize
);
26 virtual ~SharedMemoryServer ();
28 void WriteMessage (SegmentOffsetType domain
, SegmentOffsetType event
, const void *message
, SegmentOffsetType messageLength
);
30 const char* GetSegmentName ();
31 size_t GetSegmentSize ();
33 SegmentOffsetType
GetProducerOffset ();
34 void SetProducerOffset (SegmentOffsetType producerOffset
);