FIFO_Send.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //==========================================================================
00004 /**
00005  *  @file    FIFO_Send.h
00006  *
00007  *  FIFO_Send.h,v 4.19 2006/03/14 21:15:49 sjiang Exp
00008  *
00009  *  @author Doug Schmidt
00010  */
00011 //==========================================================================
00012 
00013 
00014 #ifndef ACE_FIFO_SEND_H
00015 #define ACE_FIFO_SEND_H
00016 
00017 #include /**/ "ace/pre.h"
00018 
00019 #include "ace/FIFO.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 #include "ace/os_include/os_fcntl.h"
00026 #include "ace/Default_Constants.h"
00027 
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 /**
00031  * @class ACE_FIFO_Send
00032  *
00033  * @brief Sender side for the bytestream C++ wrapper for UNIX FIFOs
00034  */
00035 class ACE_Export ACE_FIFO_Send : public ACE_FIFO
00036 {
00037 public:
00038   // = Initialization methods.
00039   /// Default constructor.
00040   ACE_FIFO_Send (void);
00041 
00042   /// Open up a bytestream named pipe for writing.
00043   ACE_FIFO_Send (const ACE_TCHAR *rendezvous,
00044                  int flags = O_WRONLY,
00045                  mode_t perms = ACE_DEFAULT_FILE_PERMS,
00046                  LPSECURITY_ATTRIBUTES sa = 0);
00047 
00048   /// Open up a bytestream named pipe for writing.
00049   int open (const ACE_TCHAR *rendezvous,
00050             int flags = O_WRONLY,
00051             mode_t perms = ACE_DEFAULT_FILE_PERMS,
00052             LPSECURITY_ATTRIBUTES sa = 0);
00053 
00054   /// Send <buf> of up to <len> bytes.
00055   ssize_t send (const void *buf, size_t len);
00056 
00057   /// Send <buf> of exactly <len> bytes (block until done).
00058   ssize_t send_n (const void *buf, size_t len);
00059 
00060   /// Dump the state of an object.
00061   void dump (void) const;
00062 
00063   /// Declare the dynamic allocation hooks.
00064   ACE_ALLOC_HOOK_DECLARE;
00065 };
00066 
00067 ACE_END_VERSIONED_NAMESPACE_DECL
00068 
00069 #if defined (__ACE_INLINE__)
00070 #include "ace/FIFO_Send.inl"
00071 #endif /* __ACE_INLINE__ */
00072 
00073 #include /**/ "ace/post.h"
00074 
00075 #endif /* ACE_FIFO_SEND_H */

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