10#if FW_ENABLE_TEXT_LOGGING
20 void TcpClientComponentBase ::
29 port < static_cast<FwIndexType>(this->getNum_send_InputPorts());
32 this->m_send_InputPort[port].init();
33 this->m_send_InputPort[port].addCallComp(
37 this->m_send_InputPort[port].setPortNum(port);
39#if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_send_InputPort[port].setObjName(portName.
toChar());
53 port < static_cast<FwIndexType>(this->getNum_allocate_OutputPorts());
56 this->m_allocate_OutputPort[port].init();
58#if FW_OBJECT_NAMES == 1
62 this->m_objName.toChar(),
65 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
72 port < static_cast<FwIndexType>(this->getNum_deallocate_OutputPorts());
75 this->m_deallocate_OutputPort[port].init();
77#if FW_OBJECT_NAMES == 1
81 this->m_objName.toChar(),
84 this->m_deallocate_OutputPort[port].setObjName(portName.
toChar());
91 port < static_cast<FwIndexType>(this->getNum_ready_OutputPorts());
94 this->m_ready_OutputPort[port].init();
96#if FW_OBJECT_NAMES == 1
100 this->m_objName.toChar(),
103 this->m_ready_OutputPort[port].setObjName(portName.
toChar());
110 port < static_cast<FwIndexType>(this->getNum_recv_OutputPorts());
113 this->m_recv_OutputPort[port].init();
115#if FW_OBJECT_NAMES == 1
119 this->m_objName.toChar(),
122 this->m_recv_OutputPort[port].setObjName(portName.
toChar());
20 void TcpClientComponentBase :: {
…}
135 portNum < this->getNum_send_InputPorts(),
139 return &this->m_send_InputPort[portNum];
146 void TcpClientComponentBase ::
147 set_allocate_OutputPort(
153 portNum < this->getNum_allocate_OutputPorts(),
157 this->m_allocate_OutputPort[portNum].addCallPort(port);
146 void TcpClientComponentBase :: {
…}
160 void TcpClientComponentBase ::
161 set_deallocate_OutputPort(
167 portNum < this->getNum_deallocate_OutputPorts(),
171 this->m_deallocate_OutputPort[portNum].addCallPort(port);
160 void TcpClientComponentBase :: {
…}
174 void TcpClientComponentBase ::
175 set_ready_OutputPort(
181 portNum < this->getNum_ready_OutputPorts(),
185 this->m_ready_OutputPort[portNum].addCallPort(port);
174 void TcpClientComponentBase :: {
…}
188 void TcpClientComponentBase ::
195 portNum < this->getNum_recv_OutputPorts(),
199 this->m_recv_OutputPort[portNum].addCallPort(port);
188 void TcpClientComponentBase :: {
…}
202#if FW_PORT_SERIALIZATION
208 void TcpClientComponentBase ::
209 set_deallocate_OutputPort(
211 Fw::InputSerializePort* port
215 portNum < this->getNum_deallocate_OutputPorts(),
219 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
222 void TcpClientComponentBase ::
223 set_ready_OutputPort(
225 Fw::InputSerializePort* port
229 portNum < this->getNum_ready_OutputPorts(),
233 this->m_ready_OutputPort[portNum].registerSerialPort(port);
236 void TcpClientComponentBase ::
239 Fw::InputSerializePort* port
243 portNum < this->getNum_recv_OutputPorts(),
247 this->m_recv_OutputPort[portNum].registerSerialPort(port);
256 TcpClientComponentBase ::
257 TcpClientComponentBase(
const char* compName) :
258 Fw::PassiveComponentBase(compName)
256 TcpClientComponentBase :: {
…}
263 TcpClientComponentBase ::
264 ~TcpClientComponentBase()
263 TcpClientComponentBase :: {
…}
274 getNum_send_InputPorts()
const
284 getNum_allocate_OutputPorts()
const
290 getNum_deallocate_OutputPorts()
const
296 getNum_ready_OutputPorts()
const
302 getNum_recv_OutputPorts()
const
311 bool TcpClientComponentBase ::
312 isConnected_allocate_OutputPort(
FwIndexType portNum)
315 portNum < this->getNum_allocate_OutputPorts(),
319 return this->m_allocate_OutputPort[portNum].isConnected();
311 bool TcpClientComponentBase :: {
…}
322 bool TcpClientComponentBase ::
323 isConnected_deallocate_OutputPort(
FwIndexType portNum)
326 portNum < this->getNum_deallocate_OutputPorts(),
330 return this->m_deallocate_OutputPort[portNum].isConnected();
322 bool TcpClientComponentBase :: {
…}
333 bool TcpClientComponentBase ::
337 portNum < this->getNum_ready_OutputPorts(),
341 return this->m_ready_OutputPort[portNum].isConnected();
333 bool TcpClientComponentBase :: {
…}
344 bool TcpClientComponentBase ::
348 portNum < this->getNum_recv_OutputPorts(),
352 return this->m_recv_OutputPort[portNum].isConnected();
344 bool TcpClientComponentBase :: {
…}
369 portNum < this->getNum_send_InputPorts(),
379 retVal = this->send_handler(
401 portNum < this->getNum_allocate_OutputPorts(),
404 return this->m_allocate_OutputPort[portNum].invoke(
409 void TcpClientComponentBase ::
416 portNum < this->getNum_deallocate_OutputPorts(),
419 this->m_deallocate_OutputPort[portNum].invoke(
409 void TcpClientComponentBase :: {
…}
424 void TcpClientComponentBase ::
428 portNum < this->getNum_ready_OutputPorts(),
431 this->m_ready_OutputPort[portNum].invoke();
424 void TcpClientComponentBase :: {
…}
434 void TcpClientComponentBase ::
442 portNum < this->getNum_recv_OutputPorts(),
445 this->m_recv_OutputPort[portNum].invoke(
434 void TcpClientComponentBase :: {
…}
458 void TcpClientComponentBase ::
461 this->m_guardedPortMutex.lock();
458 void TcpClientComponentBase :: {
…}
464 void TcpClientComponentBase ::
467 this->m_guardedPortMutex.unLock();
464 void TcpClientComponentBase :: {
…}
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
Status associated with the received data.
Status returned by the send call.
Auto-generated base for TcpClient component.
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void init()
Object initializer.
const char * toChar() const
void format(const CHAR *formatString,...)
write formatted string to buffer