summaryrefslogtreecommitdiff
path: root/ace/FIFO_Send.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/FIFO_Send.h')
-rw-r--r--ace/FIFO_Send.h58
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 */
+