1 #include "ace/FIFO_Recv_Msg.h"
2 #include "ace/Log_Msg.h"
3 #include "ace/OS_NS_stdio.h"
4 #include "ace/OS_NS_unistd.h"
5 #include "ace/OS_NS_stdlib.h"
6 #include "ace/OS_NS_stropts.h"
7 #include "ace/OS_main.h"
10 #if defined (ACE_HAS_STREAM_PIPES)
13 ACE_TMAIN (int, ACE_TCHAR
*[])
15 ACE_OS::unlink (ACE_DEFAULT_RENDEZVOUS
);
16 ACE_FIFO_Recv_Msg
server (ACE_DEFAULT_RENDEZVOUS
);
18 ACE_Str_Buf
msg (buf
, 0, sizeof buf
);
23 while ((n
= server
.recv (&band
, &msg
, (ACE_Str_Buf
*) 0, &flags
)) >= 0)
28 ACE_DEBUG ((LM_DEBUG
, "%4d (%4d): %*s",
29 msg
.len
, band
, msg
.len
, msg
.buf
));
35 ACE_OS::perror ("recv"), ACE_OS::exit (1);
40 int ACE_TMAIN (int, ACE_TCHAR
*[])
43 ACE_TEXT ("This feature is not supported\n")));
46 #endif /* ACE_HAS_STREAM_PIPES */