FIFO_Send_Msg.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    FIFO_Send_Msg.h
00006  *
00007  *  FIFO_Send_Msg.h,v 4.21 2006/03/14 21:15:49 sjiang Exp
00008  *
00009  *  @author Doug Schmidt
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_FIFO_SEND_MSG_H
00015 #define ACE_FIFO_SEND_MSG_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/FIFO_Send.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #if defined (ACE_HAS_STREAM_PIPES)
00025 #  include "ace/OS_NS_stropts.h"
00026 #endif /* ACE_HAS_STREAM_PIPES */
00027 
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 // Forward Decls
00031 class ACE_Str_Buf;
00032 
00033 /**
00034  * @class ACE_FIFO_Send_Msg
00035  *
00036  * @brief Sender side for the Record oriented C++ wrapper for UNIX
00037  * FIFOs.
00038  */
00039 class ACE_Export ACE_FIFO_Send_Msg : public ACE_FIFO_Send
00040 {
00041 public:
00042   // = Initialization methods.
00043   /// Default constructor.
00044   ACE_FIFO_Send_Msg (void);
00045 
00046   /// Open up a record-oriented named pipe for writing.
00047   ACE_FIFO_Send_Msg (const ACE_TCHAR *rendezvous,
00048                      int flags = O_WRONLY,
00049                      mode_t perms = ACE_DEFAULT_FILE_PERMS,
00050                      LPSECURITY_ATTRIBUTES sa = 0);
00051 
00052   /// Open up a record-oriented named pipe for writing.
00053   int open (const ACE_TCHAR *rendezvous,
00054             int flags = O_WRONLY,
00055             mode_t perms = ACE_DEFAULT_FILE_PERMS,
00056             LPSECURITY_ATTRIBUTES sa = 0);
00057 
00058   /// Send <buf> of up to <len> bytes.
00059   ssize_t send (const ACE_Str_Buf &msg);
00060 
00061   /// Send <buf> of exactly <len> bytes (block until done).
00062   ssize_t send (const void *buf, size_t len);
00063 
00064 #if defined (ACE_HAS_STREAM_PIPES)
00065   /// Send <data> and <cntl> message via Stream pipes.
00066   ssize_t send (const ACE_Str_Buf *data,
00067                 const ACE_Str_Buf *cntl = 0,
00068                 int flags = 0);
00069 
00070   /// Send <data> and <cntl> message via Stream pipes in "band" mode.
00071   ssize_t send (int band,
00072                 const ACE_Str_Buf *data,
00073                 const ACE_Str_Buf *cntl = 0,
00074                 int flags = MSG_BAND);
00075 #endif /* ACE_HAS_STREAM_PIPES */
00076 
00077   /// Dump the state of an object.
00078   void dump (void) const;
00079 
00080   /// Declare the dynamic allocation hooks.
00081   ACE_ALLOC_HOOK_DECLARE;
00082 };
00083 
00084 ACE_END_VERSIONED_NAMESPACE_DECL
00085 
00086 #if defined (__ACE_INLINE__)
00087 #include "ace/FIFO_Send_Msg.inl"
00088 #endif /* __ACE_INLINE__ */
00089 
00090 #include /**/ "ace/post.h"
00091 #endif /* ACE_FIFO_SEND_MSG_H */

Generated on Thu Nov 9 09:41:50 2006 for ACE by doxygen 1.3.6