10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_recvReturnIn_InputPort[port].
init();
37 this->m_recvReturnIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_recvReturnIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_send_InputPort[port].
init();
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_send_InputPort[port].setObjName(portName.
toChar());
80 this->m_allocate_OutputPort[port].
init();
82 #if FW_OBJECT_NAMES == 1 86 this->m_objName.toChar(),
89 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
99 this->m_deallocate_OutputPort[port].
init();
101 #if FW_OBJECT_NAMES == 1 105 this->m_objName.toChar(),
108 this->m_deallocate_OutputPort[port].setObjName(portName.
toChar());
118 this->m_ready_OutputPort[port].
init();
120 #if FW_OBJECT_NAMES == 1 124 this->m_objName.toChar(),
127 this->m_ready_OutputPort[port].setObjName(portName.
toChar());
137 this->m_recv_OutputPort[port].
init();
139 #if FW_OBJECT_NAMES == 1 143 this->m_objName.toChar(),
146 this->m_recv_OutputPort[port].setObjName(portName.
toChar());
160 static_cast<FwAssertArgType>(portNum)
163 return &this->m_recvReturnIn_InputPort[portNum];
171 static_cast<FwAssertArgType>(portNum)
174 return &this->m_send_InputPort[portNum];
189 static_cast<FwAssertArgType>(portNum)
192 this->m_allocate_OutputPort[portNum].
addCallPort(port);
203 static_cast<FwAssertArgType>(portNum)
206 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
217 static_cast<FwAssertArgType>(portNum)
220 this->m_ready_OutputPort[portNum].
addCallPort(port);
231 static_cast<FwAssertArgType>(portNum)
234 this->m_recv_OutputPort[portNum].
addCallPort(port);
237 #if FW_PORT_SERIALIZATION 246 Fw::InputSerializePort* port
251 static_cast<FwAssertArgType>(portNum)
254 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
260 Fw::InputSerializePort* port
265 static_cast<FwAssertArgType>(portNum)
268 this->m_ready_OutputPort[portNum].registerSerialPort(port);
274 Fw::InputSerializePort* port
279 static_cast<FwAssertArgType>(portNum)
282 this->m_recv_OutputPort[portNum].registerSerialPort(port);
293 Fw::PassiveComponentBase(compName)
357 static_cast<FwAssertArgType>(portNum)
360 return this->m_allocate_OutputPort[portNum].
isConnected();
368 static_cast<FwAssertArgType>(portNum)
371 return this->m_deallocate_OutputPort[portNum].
isConnected();
379 static_cast<FwAssertArgType>(portNum)
382 return this->m_ready_OutputPort[portNum].
isConnected();
390 static_cast<FwAssertArgType>(portNum)
393 return this->m_recv_OutputPort[portNum].
isConnected();
411 static_cast<FwAssertArgType>(portNum)
436 static_cast<FwAssertArgType>(portNum)
468 static_cast<FwAssertArgType>(portNum)
472 this->m_allocate_OutputPort[portNum].isConnected(),
473 static_cast<FwAssertArgType>(portNum)
475 return this->m_allocate_OutputPort[portNum].
invoke(
488 static_cast<FwAssertArgType>(portNum)
492 this->m_deallocate_OutputPort[portNum].isConnected(),
493 static_cast<FwAssertArgType>(portNum)
495 this->m_deallocate_OutputPort[portNum].
invoke(
505 static_cast<FwAssertArgType>(portNum)
509 this->m_ready_OutputPort[portNum].isConnected(),
510 static_cast<FwAssertArgType>(portNum)
512 this->m_ready_OutputPort[portNum].
invoke();
524 static_cast<FwAssertArgType>(portNum)
528 this->m_recv_OutputPort[portNum].isConnected(),
529 static_cast<FwAssertArgType>(portNum)
531 this->m_recv_OutputPort[portNum].
invoke(
547 this->m_guardedPortMutex.
lock();
553 this->m_guardedPortMutex.
unLock();
560 void TcpClientComponentBase ::
584 return compPtr->send_handlerBase(
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
virtual void lock()
Lock the guarded mutex.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
PlatformSizeType FwSizeType
virtual Drv::ByteStreamStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
Auto-generated base for TcpClient component.
void unLock()
unlock the mutex and assert success
FwIndexType getNum_recv_OutputPorts() const
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port recv.
void init()
Object initializer.
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
TcpClientComponentBase(const char *compName="")
Construct TcpClientComponentBase object.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
virtual ~TcpClientComponentBase()
Destroy TcpClientComponentBase object.
FwIndexType getNum_deallocate_OutputPorts() const
void addCallPort(InputByteStreamDataPort *callPort)
Register an input port.
Status returned by the send call.
Drv::ByteStreamStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void invoke(Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke a port interface.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port allocate.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
FwIndexType getNum_send_InputPorts() const
const char * toChar() const
Fw::InputBufferSendPort * get_recvReturnIn_InputPort(FwIndexType portNum)
virtual void recvReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port recvReturnIn.
virtual void unLock()
Unlock the guarded mutex.
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to recv[portNum].
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
bool isConnected_recv_OutputPort(FwIndexType portNum)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
void init()
Initialization function.
void init()
Initialization function.
PlatformIndexType FwIndexType
void invoke() const
Invoke a port interface.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void init()
Initialization function.
FwIndexType getNum_recvReturnIn_InputPorts() const
FwIndexType getNum_allocate_OutputPorts() const
FwIndexType getNum_ready_OutputPorts() const
void init()
Initialization function.
bool isConnected_ready_OutputPort(FwIndexType portNum)
void ready_out(FwIndexType portNum)
Invoke output port ready.
void lock()
lock the mutex and assert success
bool isConnected_allocate_OutputPort(FwIndexType portNum)