#include <InPortTcpSockConsumer.h>
Public Member Functions | |
InPortTcpSockConsumer (BufferBase< DataType > &buffer, Properties &prop) | |
Constructor. | |
InPortTcpSockConsumer (const InPortTcpSockConsumer< DataType > &consumer) | |
Copy constructor. | |
InPortTcpSockConsumer & | operator= (const InPortTcpSockConsumer< DataType > &consumer) |
Assignment operator. | |
virtual | ~InPortTcpSockConsumer (void) |
Destructor. | |
void | push () |
Read data from the buffer. | |
virtual InPortTcpSockConsumer * | clone () const |
Create clone. | |
virtual bool | subscribeInterface (const SDOPackage::NVList &properties) |
Subscribe to the data send notification. | |
virtual void | unsubscribeInterface (const SDOPackage::NVList &properties) |
Unsubscribe the data send notification. |
This is an implementation class of OutPort Consumer that uses TCP socket for means of communication.
DataType | Data type held by the buffer that attached to this provider |
RTC::InPortTcpSockConsumer< DataType >::InPortTcpSockConsumer | ( | BufferBase< DataType > & | buffer, | |
Properties & | prop | |||
) | [inline] |
Constructor.
Constructor
buffer | Buffer objects that are attached to this Consumer | |
prop | Properties for TCP communication setup |
RTC::InPortTcpSockConsumer< DataType >::InPortTcpSockConsumer | ( | const InPortTcpSockConsumer< DataType > & | consumer | ) | [inline] |
virtual RTC::InPortTcpSockConsumer< DataType >::~InPortTcpSockConsumer | ( | void | ) | [inline, virtual] |
Destructor.
Destructor
InPortTcpSockConsumer& RTC::InPortTcpSockConsumer< DataType >::operator= | ( | const InPortTcpSockConsumer< DataType > & | consumer | ) | [inline] |
Assignment operator.
Assignment operator
consumer | InPortTcpSockConsumer object of assignment source |
void RTC::InPortTcpSockConsumer< DataType >::push | ( | ) | [inline] |
Read data from the buffer.
Read data from the buffer and send it.
virtual InPortTcpSockConsumer* RTC::InPortTcpSockConsumer< DataType >::clone | ( | ) | const [inline, virtual] |
Create clone.
Create clone objects of this InPortTcpSockConsumer.
virtual bool RTC::InPortTcpSockConsumer< DataType >::subscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline, virtual] |
Subscribe to the data send notification.
Subscribe the data send notification according to the specified property information.
properties | Information for subscription |
Implements RTC::InPortConsumer.
virtual void RTC::InPortTcpSockConsumer< DataType >::unsubscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline, virtual] |
Unsubscribe the data send notification.
Unsubscribe the data send notification and close the TCP stream.
Implements RTC::InPortConsumer.