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

FIFO_Send_Msg.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    FIFO_Send_Msg.h
00006  *
00007  *  $Id: FIFO_Send_Msg.h,v 1.1.1.3 2001/12/04 14:33:00 chad 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 /**
00025  * @class ACE_FIFO_Send_Msg
00026  *
00027  * @brief Sender side for the Record oriented C++ wrapper for UNIX
00028  * FIFOs.
00029  */
00030 class ACE_Export ACE_FIFO_Send_Msg : public ACE_FIFO_Send
00031 {
00032 public:
00033   // = Initialization methods.
00034   /// Default constructor.
00035   ACE_FIFO_Send_Msg (void);
00036 
00037   /// Open up a record-oriented named pipe for writing.
00038   ACE_FIFO_Send_Msg (const ACE_TCHAR *rendezvous,
00039                      int flags = O_WRONLY,
00040                      int perms = ACE_DEFAULT_FILE_PERMS,
00041                      LPSECURITY_ATTRIBUTES sa = 0);
00042 
00043   /// Open up a record-oriented named pipe for writing.
00044   int open (const ACE_TCHAR *rendezvous,
00045             int flags = O_WRONLY,
00046             int perms = ACE_DEFAULT_FILE_PERMS,
00047             LPSECURITY_ATTRIBUTES sa = 0);
00048 
00049   /// Send <buf> of up to <len> bytes.
00050   ssize_t send (const ACE_Str_Buf &msg);
00051 
00052   /// Send <buf> of exactly <len> bytes (block until done).
00053   ssize_t send (const void *buf, size_t len);
00054 
00055 #if defined (ACE_HAS_STREAM_PIPES)
00056   /// Send <data> and <cntl> message via Stream pipes.
00057   ssize_t send (const ACE_Str_Buf *data,
00058                 const ACE_Str_Buf *cntl = 0,
00059                 int flags = 0);
00060 
00061   /// Send <data> and <cntl> message via Stream pipes in "band" mode.
00062   ssize_t send (int band,
00063                 const ACE_Str_Buf *data,
00064                 const ACE_Str_Buf *cntl = 0,
00065                 int flags = MSG_BAND);
00066 #endif /* ACE_HAS_STREAM_PIPES */
00067 
00068   /// Dump the state of an object.
00069   void dump (void) const;
00070 
00071   /// Declare the dynamic allocation hooks.
00072   ACE_ALLOC_HOOK_DECLARE;
00073 };
00074 
00075 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00076 #include "ace/FIFO_Send_Msg.i"
00077 #endif
00078 
00079 #include "ace/post.h"
00080 #endif /* ACE_FIFO_SEND_MSG_H */

Generated on Mon Jun 16 11:19:40 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002