Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_FIFO_Send Class Reference

Sender side for the bytestream C++ wrapper for UNIX FIFOs. More...

#include <FIFO_Send.h>

Inheritance diagram for ACE_FIFO_Send:

Inheritance graph
[legend]
Collaboration diagram for ACE_FIFO_Send:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_FIFO_Send (void)
 Default constructor. More...

 ACE_FIFO_Send (const ACE_TCHAR *rendezvous, int flags=O_WRONLY, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0)
 Open up a bytestream named pipe for writing. More...

int open (const ACE_TCHAR *rendezvous, int flags=O_WRONLY, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0)
 Open up a bytestream named pipe for writing. More...

ssize_t send (const void *buf, size_t len)
 Send <buf> of up to <len> bytes. More...

ssize_t send_n (const void *buf, size_t len)
 Send <buf> of exactly <len> bytes (block until done). More...

void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Detailed Description

Sender side for the bytestream C++ wrapper for UNIX FIFOs.

Definition at line 32 of file FIFO_Send.h.


Constructor & Destructor Documentation

ACE_FIFO_Send::ACE_FIFO_Send void   
 

Default constructor.

Definition at line 23 of file FIFO_Send.cpp.

00024 {
00025 //  ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
00026 }

ACE_FIFO_Send::ACE_FIFO_Send const ACE_TCHAR   rendezvous,
int    flags = O_WRONLY,
int    perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES    sa = 0
 

Open up a bytestream named pipe for writing.

Definition at line 41 of file FIFO_Send.cpp.

References ACE_ERROR, ACE_LIB_TEXT, ACE_TCHAR, ACE_TRACE, LM_ERROR, and open.

00045 {
00046   ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
00047   if (this->ACE_FIFO_Send::open (fifo_name,
00048                                  flags,
00049                                  perms,
00050                                  sa) == -1)
00051     ACE_ERROR ((LM_ERROR,
00052                 ACE_LIB_TEXT ("%p\n"),
00053                 ACE_LIB_TEXT ("ACE_FIFO_Send::ACE_FIFO_Send")));
00054 }


Member Function Documentation

void ACE_FIFO_Send::dump void    const
 

Dump the state of an object.

Reimplemented from ACE_FIFO.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 17 of file FIFO_Send.cpp.

References ACE_TRACE, and ACE_FIFO::dump.

Referenced by ACE_FIFO_Send_Msg::dump.

00018 {
00019   ACE_TRACE ("ACE_FIFO_Send::dump");
00020   ACE_FIFO::dump ();
00021 }

int ACE_FIFO_Send::open const ACE_TCHAR   rendezvous,
int    flags = O_WRONLY,
int    perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES    sa = 0
 

Open up a bytestream named pipe for writing.

Reimplemented from ACE_FIFO.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 29 of file FIFO_Send.cpp.

References ACE_TCHAR, ACE_TRACE, and ACE_FIFO::open.

Referenced by ACE_FIFO_Send, and ACE_FIFO_Send_Msg::open.

00033 {
00034   ACE_TRACE ("ACE_FIFO_Send::open");
00035   return ACE_FIFO::open (rendezvous_name,
00036                          flags | O_WRONLY,
00037                          perms,
00038                          sa);
00039 }

ASYS_INLINE ssize_t ACE_FIFO_Send::send const void *    buf,
size_t    len
 

Send <buf> of up to <len> bytes.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 7 of file FIFO_Send.i.

References ACE_TRACE, and ACE_OS::write.

00008 {
00009   ACE_TRACE ("ACE_FIFO_Send::send");
00010   return ACE_OS::write (this->get_handle (), (const char *) buf, len);  
00011 }

ASYS_INLINE ssize_t ACE_FIFO_Send::send_n const void *    buf,
size_t    len
 

Send <buf> of exactly <len> bytes (block until done).

Definition at line 14 of file FIFO_Send.i.

References ACE_TRACE, and ACE::send_n.

00015 {
00016   ACE_TRACE ("ACE_FIFO_Send::send_n");
00017   return ACE::send_n (this->get_handle (), buf, n);
00018 }


Member Data Documentation

ACE_FIFO_Send::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_FIFO.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 61 of file FIFO_Send.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:47:50 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002