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

FIFO_Send.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //==========================================================================
00004 /**
00005  *  @file    FIFO_Send.h
00006  *
00007  *  $Id: FIFO_Send.h,v 1.1.1.4 2003/02/21 18:36:32 chad 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/ACE.h"
00026 
00027 /**
00028  * @class ACE_FIFO_Send
00029  *
00030  * @brief Sender side for the bytestream C++ wrapper for UNIX FIFOs
00031  */
00032 class ACE_Export ACE_FIFO_Send : public ACE_FIFO
00033 {
00034 public:
00035   // = Initialization methods.
00036   /// Default constructor.
00037   ACE_FIFO_Send (void);
00038 
00039   /// Open up a bytestream named pipe for writing.
00040   ACE_FIFO_Send (const ACE_TCHAR *rendezvous,
00041                  int flags = O_WRONLY,
00042                  int perms = ACE_DEFAULT_FILE_PERMS,
00043                  LPSECURITY_ATTRIBUTES sa = 0);
00044 
00045   /// Open up a bytestream named pipe for writing.
00046   int open (const ACE_TCHAR *rendezvous,
00047             int flags = O_WRONLY,
00048             int perms = ACE_DEFAULT_FILE_PERMS,
00049             LPSECURITY_ATTRIBUTES sa = 0);
00050 
00051   /// Send <buf> of up to <len> bytes.
00052   ssize_t send (const void *buf, size_t len);
00053 
00054   /// Send <buf> of exactly <len> bytes (block until done).
00055   ssize_t send_n (const void *buf, size_t len);
00056 
00057   /// Dump the state of an object.
00058   void dump (void) const;
00059 
00060   /// Declare the dynamic allocation hooks.
00061   ACE_ALLOC_HOOK_DECLARE;
00062 };
00063 
00064 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00065 #include "ace/FIFO_Send.i"
00066 #endif
00067 
00068 #include "ace/post.h"
00069 
00070 #endif /* ACE_FIFO_SEND_H */

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