7 #ifndef Drv_TcpClientComponentAc_HPP
8 #define Drv_TcpClientComponentAc_HPP
109 #if FW_PORT_SERIALIZATION
120 Fw::InputSerializePort* port
126 Fw::InputSerializePort* port
132 Fw::InputSerializePort* port
145 const char* compName =
""
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Status associated with the received data.
Status returned by the send call.
Auto-generated base for TcpClient component.
FwIndexType getNum_deallocate_OutputPorts() const
FwIndexType getNum_recv_OutputPorts() const
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
bool isConnected_ready_OutputPort(FwIndexType portNum)
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
virtual Drv::SendStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
FwIndexType getNum_send_InputPorts() const
void ready_out(FwIndexType portNum)
Invoke output port ready.
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamRecvPort *port)
Connect port to recv[portNum].
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
virtual ~TcpClientComponentBase()
Destroy TcpClientComponentBase object.
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
@ NUM_DEALLOCATE_OUTPUT_PORTS
@ NUM_ALLOCATE_OUTPUT_PORTS
FwIndexType getNum_allocate_OutputPorts() const
virtual void unLock()
Unlock the guarded mutex.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
bool isConnected_recv_OutputPort(FwIndexType portNum)
FwIndexType getNum_ready_OutputPorts() const
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
friend class TcpClientComponentBaseFriend
Friend class for white-box testing.
TcpClientComponentBase(const char *compName="")
Construct TcpClientComponentBase object.
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
virtual void lock()
Lock the guarded mutex.
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
void init()
Object initializer.