summaryrefslogtreecommitdiff
path: root/ace/FIFO_Send_Msg.i
blob: e81484983c2af8c32820cb4dab153f2a0580ef9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* -*- C++ -*- */
// $Id$

// FIFO_Send_Msg.i

ASYS_INLINE ssize_t
ACE_FIFO_Send_Msg::send (const void *buf, size_t len)
{
  ACE_TRACE ("ACE_FIFO_Send_Msg::send");
  ACE_Str_Buf send_msg ((char *) buf, len);

  return this->send (send_msg);
}

#if defined (ACE_HAS_STREAM_PIPES)
ASYS_INLINE ssize_t
ACE_FIFO_Send_Msg::send (const ACE_Str_Buf *data, 
			 const ACE_Str_Buf *cntl, 
			 int flags)
{
  ACE_TRACE ("ACE_FIFO_Send_Msg::send");
  return ACE_OS::putmsg (this->get_handle (), 
			 (strbuf *) cntl, 
			 (strbuf *) data, 
			 flags);
}

ASYS_INLINE ssize_t
ACE_FIFO_Send_Msg::send (int band, 
			 const ACE_Str_Buf *data, 
			 const ACE_Str_Buf *cntl, 
			 int flags)
{
  ACE_TRACE ("ACE_FIFO_Send_Msg::send");
  return ACE_OS::putpmsg (this->get_handle (), 
			  (strbuf *) cntl, 
			  (strbuf *) data, 
			  band, 
			  flags);
}
#endif /* ACE_HAS_STREAM_PIPES */