Public Member Functions | Public Attributes

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 buf of up to len bytes.
ssize_t send_n (const void *buf, size_t len)
 Send buf of exactly len 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.

{
//  ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
}

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.

{
  ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
  if (this->ACE_FIFO_Send::open (fifo_name,
                                 flags,
                                 perms,
                                 sa) == -1)
    ACE_ERROR ((LM_ERROR,
                ACE_TEXT ("%p\n"),
                ACE_TEXT ("ACE_FIFO_Send::ACE_FIFO_Send")));
}


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.

{
#if defined (ACE_HAS_DUMP)
  ACE_TRACE ("ACE_FIFO_Send::dump");
  ACE_FIFO::dump ();
#endif /* ACE_HAS_DUMP */
}

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.

{
  ACE_TRACE ("ACE_FIFO_Send::open");
  return ACE_FIFO::open (rendezvous_name,
                         flags | O_WRONLY,
                         perms,
                         sa);
}

ssize_t ACE_FIFO_Send::send ( const void *  buf,
size_t  len 
) [inline]

Send buf of up to len bytes.

Reimplemented in ACE_FIFO_Send_Msg.

Definition at line 11 of file FIFO_Send.inl.

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

ssize_t ACE_FIFO_Send::send_n ( const void *  buf,
size_t  len 
) [inline]

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

Definition at line 18 of file FIFO_Send.inl.

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


Member Data Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines