#include <SV_Message_Queue.h>
Public Types | |
enum | { ACE_CREATE = IPC_CREAT, ACE_OPEN = 0, ACE_NOWAIT = IPC_NOWAIT } |
Public Member Functions | |
ACE_SV_Message_Queue (void) | |
Open a message queue using the <external_id>. | |
ACE_SV_Message_Queue (key_t external_id, int create=ACE_SV_Message_Queue::ACE_OPEN, int perms=ACE_DEFAULT_FILE_PERMS) | |
int | open (key_t external_id, int create=ACE_SV_Message_Queue::ACE_OPEN, int perms=ACE_DEFAULT_FILE_PERMS) |
~ACE_SV_Message_Queue (void) | |
int | close (void) |
int | remove (void) |
Close down and remove the message queue from the system. | |
ssize_t | recv (ACE_SV_Message &mb, int length, long mtype=0, int mflags=0) |
int | send (const ACE_SV_Message &mb, int length, int mflags=0) |
int | control (int option, void *arg=0) |
Access the underlying control operations. | |
int | get_id (void) const |
Get the underly internal id. | |
void | set_id (int) |
Set the underly internal id. | |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Attributes | |
int | internal_id_ |
Returned from the underlying <msgget> system call. |
ACE_SV_Message_Queue::ACE_SV_Message_Queue | ( | void | ) |
Open a message queue using the <external_id>.
ACE_SV_Message_Queue::ACE_SV_Message_Queue | ( | key_t | external_id, | |
int | create = ACE_SV_Message_Queue::ACE_OPEN , |
|||
int | perms = ACE_DEFAULT_FILE_PERMS | |||
) |
ACE_SV_Message_Queue::~ACE_SV_Message_Queue | ( | void | ) |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_SV_Message_Queue::open | ( | key_t | external_id, | |
int | create = ACE_SV_Message_Queue::ACE_OPEN , |
|||
int | perms = ACE_DEFAULT_FILE_PERMS | |||
) |
ACE_INLINE int ACE_SV_Message_Queue::close | ( | void | ) |
Close down this instance of the message queue without removing it from the system.
ACE_INLINE int ACE_SV_Message_Queue::remove | ( | void | ) |
Close down and remove the message queue from the system.
ACE_INLINE ssize_t ACE_SV_Message_Queue::recv | ( | ACE_SV_Message & | mb, | |
int | length, | |||
long | mtype = 0 , |
|||
int | mflags = 0 | |||
) |
ACE_INLINE int ACE_SV_Message_Queue::send | ( | const ACE_SV_Message & | mb, | |
int | length, | |||
int | mflags = 0 | |||
) |
ACE_INLINE int ACE_SV_Message_Queue::control | ( | int | option, | |
void * | arg = 0 | |||
) |
Access the underlying control operations.
ACE_INLINE int ACE_SV_Message_Queue::get_id | ( | void | ) | const |
Get the underly internal id.
ACE_INLINE void ACE_SV_Message_Queue::set_id | ( | int | id | ) |
Set the underly internal id.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_SV_Message_Queue::dump | ( | void | ) | const |
Dump the state of an object.
Declare the dynamic allocation hooks.
int ACE_SV_Message_Queue::internal_id_ [protected] |
Returned from the underlying <msgget> system call.