2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::PosixMsg Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::PosixMsg:

Ux::Base List of all members.

Detailed Description

Definition at line 44 of file uxposixipc.hpp.

Public Member Functions

 PosixMsg (mqd_t m=(mqd_t)-1)
void close (void)
void getattr (struct mq_attr *attr)
void notify (const struct sigevent *ep)
void open (const char *name, int flags, mode_t perms=PERM_FILE, struct mq_attr *attr=NULL)
ssize_t receive (char *msg, size_t msgsize, unsigned *priorityp=NULL)
void send (const char *msg, size_t msgsize, unsigned priority=0)
void setattr (const struct mq_attr *attr, struct mq_attr *oldattr=NULL)
ssize_t timedreceive (char *msg, size_t msgsize, unsigned *priorityp, const struct timespec *tmout)
void timedsend (const char *msg, size_t msgsize, unsigned priority, const struct timespec *tmout)
void unlink (const char *name)

Protected Attributes

mqd_t mqd


Constructor & Destructor Documentation

Ux::PosixMsg::PosixMsg mqd_t  m = (mqd_t)-1  )  [inline]
 

Definition at line 48 of file uxposixipc.hpp.


Member Function Documentation

void PosixMsg::close void   ) 
 

Calls mq_close.

Definition at line 38 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::getattr struct mq_attr *  attr  ) 
 

Calls mq_getattr.

Definition at line 135 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::notify const struct sigevent *  ep  ) 
 

Calls mq_notify.

Definition at line 122 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::open const char *  name,
int  flags,
mode_t  perms = PERM_FILE,
struct mq_attr *  attr = NULL
 

Calls mq_open.

Definition at line 25 of file uxposixipc.cpp.

References errno, mqd, and mqd_t.

ssize_t PosixMsg::receive char *  msg,
size_t  msgsize,
unsigned *  priorityp = NULL
 

Calls mq_receive.

Definition at line 77 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::send const char *  msg,
size_t  msgsize,
unsigned  priority = 0
 

Calls mq_send.

Definition at line 64 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::setattr const struct mq_attr *  attr,
struct mq_attr *  oldattr = NULL
 

Calls mq_setattr.

Definition at line 148 of file uxposixipc.cpp.

References errno, and mqd.

ssize_t PosixMsg::timedreceive char *  msg,
size_t  msgsize,
unsigned *  priorityp,
const struct timespec *  tmout
 

Calls mq_timedreceive.

Definition at line 106 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::timedsend const char *  msg,
size_t  msgsize,
unsigned  priority,
const struct timespec *  tmout
 

Calls mq_timedsend.

Definition at line 93 of file uxposixipc.cpp.

References errno, and mqd.

void PosixMsg::unlink const char *  name  ) 
 

Calls mq_unlink. Could be static, as it doesn't refer to the mqd.

Definition at line 51 of file uxposixipc.cpp.

References errno.


Member Data Documentation

mqd_t Ux::PosixMsg::mqd [protected]
 

Definition at line 46 of file uxposixipc.hpp.

Referenced by close(), getattr(), notify(), open(), receive(), send(), setattr(), timedreceive(), and timedsend().


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:17 2004 for AUP2 Example Source by doxygen 1.3.1