diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
commit | a5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch) | |
tree | bcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/FIFO_Send.h | |
download | ATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz |
Initial revision
Diffstat (limited to 'ace/FIFO_Send.h')
-rw-r--r-- | ace/FIFO_Send.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/ace/FIFO_Send.h b/ace/FIFO_Send.h new file mode 100644 index 00000000000..c413ed12635 --- /dev/null +++ b/ace/FIFO_Send.h @@ -0,0 +1,58 @@ +/* -*- C++ -*- */ +// $Id$ + + +// ============================================================================ +// +// = LIBRARY +// ace +// +// = FILENAME +// FIFO_Send.h +// +// = AUTHOR +// Doug Schmidt +// +// ============================================================================ + +#if !defined (ACE_FIFO_SEND_H) +#define ACE_FIFO_SEND_H + +#include "ace/FIFO.h" + +class ACE_Export ACE_FIFO_Send : public ACE_FIFO + // = TITLE + // Sender side for the bytestream C++ wrapper for UNIX FIFOs +{ +public: + // = Initialization methods. + ACE_FIFO_Send (void); + // Default constructor. + + ACE_FIFO_Send (const char *rendezvous, + int flags = O_WRONLY, + int perms = ACE_DEFAULT_PERMS); + // Open up a bytestream named pipe for writing. + + int open (const char *rendezvous, + int flags = O_WRONLY, + int perms = ACE_DEFAULT_PERMS); + // 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. + + ACE_ALLOC_HOOK_DECLARE; + // Declare the dynamic allocation hooks. +}; + +#include "ace/FIFO_Send.i" + +#endif /* ACE_FIFO_SEND_H */ + |