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 Member Functions

 ACE_FIFO_Send (void)
 Default constructor.

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

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

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

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

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


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Detailed Description

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

Definition at line 35 of file FIFO_Send.h.


Constructor & Destructor Documentation

ACE_FIFO_Send::ACE_FIFO_Send void   ) 
 

Default constructor.

Definition at line 25 of file FIFO_Send.cpp.

00026 {
00027 //  ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
00028 }

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

Open up a bytestream named pipe for writing.

Definition at line 43 of file FIFO_Send.cpp.

References ACE_ERROR, ACE_LIB_TEXT, ACE_TCHAR, ACE_TRACE, LM_ERROR, mode_t, and open().

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


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL 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 #if defined (ACE_HAS_DUMP)
00020   ACE_TRACE ("ACE_FIFO_Send::dump");
00021   ACE_FIFO::dump ();
00022 #endif /* ACE_HAS_DUMP */
00023 }

int ACE_FIFO_Send::open const ACE_TCHAR rendezvous,
int  flags = O_WRONLY,
mode_t  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 31 of file FIFO_Send.cpp.

References ACE_TCHAR, ACE_TRACE, mode_t, and ACE_FIFO::open().

Referenced by ACE_FIFO_Send(), and ACE_FIFO_Send_Msg::open().

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

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ssize_t ACE_FIFO_Send::send const void *  buf,
size_t  len
 

Send of up to bytes.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 11 of file FIFO_Send.inl.

References ACE_TRACE, and ACE_OS::write().

00012 {
00013   ACE_TRACE ("ACE_FIFO_Send::send");
00014   return ACE_OS::write (this->get_handle (), (const char *) buf, len);
00015 }

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

Send of exactly bytes (block until done).

Definition at line 18 of file FIFO_Send.inl.

References ACE_TRACE, and ACE::send_n().

00019 {
00020   ACE_TRACE ("ACE_FIFO_Send::send_n");
00021   return ACE::send_n (this->get_handle (), buf, n);
00022 }


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 64 of file FIFO_Send.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:22:11 2006 for ACE by doxygen 1.3.6