7 #ifndef Drv_TcpServerComponentAc_HPP
8 #define Drv_TcpServerComponentAc_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 TcpServer component.
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
FwIndexType getNum_send_InputPorts() const
virtual void unLock()
Unlock the guarded mutex.
void ready_out(FwIndexType portNum)
Invoke output port ready.
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
friend class TcpServerComponentBaseFriend
Friend class for white-box testing.
FwIndexType getNum_ready_OutputPorts() const
bool isConnected_recv_OutputPort(FwIndexType portNum)
virtual void lock()
Lock the guarded mutex.
TcpServerComponentBase(const char *compName="")
Construct TcpServerComponentBase object.
virtual Drv::SendStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
@ NUM_DEALLOCATE_OUTPUT_PORTS
@ NUM_ALLOCATE_OUTPUT_PORTS
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
FwIndexType getNum_recv_OutputPorts() const
virtual ~TcpServerComponentBase()
Destroy TcpServerComponentBase object.
bool isConnected_ready_OutputPort(FwIndexType portNum)
FwIndexType getNum_deallocate_OutputPorts() const
FwIndexType getNum_allocate_OutputPorts() const
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamRecvPort *port)
Connect port to recv[portNum].
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
void init()
Object initializer.