00001
00002
00003
00004
00005
00006
00007
00008
00009
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
00023
00024 #if defined (ACE_HAS_STREAM_PIPES)
00025 # include "ace/OS_NS_stropts.h"
00026 #endif
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030
00031 class ACE_Str_Buf;
00032
00033
00034
00035
00036
00037
00038
00039 class ACE_Export ACE_FIFO_Send_Msg : public ACE_FIFO_Send
00040 {
00041 public:
00042
00043
00044 ACE_FIFO_Send_Msg (void);
00045
00046
00047 ACE_FIFO_Send_Msg (const ACE_TCHAR *rendezvous,
00048 int flags = O_WRONLY,
00049 mode_t perms = ACE_DEFAULT_FILE_PERMS,
00050 LPSECURITY_ATTRIBUTES sa = 0);
00051
00052
00053 int open (const ACE_TCHAR *rendezvous,
00054 int flags = O_WRONLY,
00055 mode_t perms = ACE_DEFAULT_FILE_PERMS,
00056 LPSECURITY_ATTRIBUTES sa = 0);
00057
00058
00059 ssize_t send (const ACE_Str_Buf &msg);
00060
00061
00062 ssize_t send (const void *buf, size_t len);
00063
00064 #if defined (ACE_HAS_STREAM_PIPES)
00065
00066 ssize_t send (const ACE_Str_Buf *data,
00067 const ACE_Str_Buf *cntl = 0,
00068 int flags = 0);
00069
00070
00071 ssize_t send (int band,
00072 const ACE_Str_Buf *data,
00073 const ACE_Str_Buf *cntl = 0,
00074 int flags = MSG_BAND);
00075 #endif
00076
00077
00078 void dump (void) const;
00079
00080
00081 ACE_ALLOC_HOOK_DECLARE;
00082 };
00083
00084 ACE_END_VERSIONED_NAMESPACE_DECL
00085
00086 #if defined (__ACE_INLINE__)
00087 #include "ace/FIFO_Send_Msg.inl"
00088 #endif
00089
00090 #include "ace/post.h"
00091 #endif