10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_send_InputPort[port].
init();
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_send_InputPort[port].setObjName(portName.
toChar());
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());
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());
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());
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());
136 static_cast<FwAssertArgType>(portNum)
139 return &this->m_send_InputPort[portNum];
154 static_cast<FwAssertArgType>(portNum)
157 this->m_allocate_OutputPort[portNum].
addCallPort(port);
168 static_cast<FwAssertArgType>(portNum)
171 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
182 static_cast<FwAssertArgType>(portNum)
185 this->m_ready_OutputPort[portNum].
addCallPort(port);
196 static_cast<FwAssertArgType>(portNum)
199 this->m_recv_OutputPort[portNum].
addCallPort(port);
202 #if FW_PORT_SERIALIZATION 211 Fw::InputSerializePort* port
216 static_cast<FwAssertArgType>(portNum)
219 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
225 Fw::InputSerializePort* port
230 static_cast<FwAssertArgType>(portNum)
233 this->m_ready_OutputPort[portNum].registerSerialPort(port);
239 Fw::InputSerializePort* port
244 static_cast<FwAssertArgType>(portNum)
247 this->m_recv_OutputPort[portNum].registerSerialPort(port);
258 Fw::PassiveComponentBase(compName)
316 static_cast<FwAssertArgType>(portNum)
319 return this->m_allocate_OutputPort[portNum].
isConnected();
327 static_cast<FwAssertArgType>(portNum)
330 return this->m_deallocate_OutputPort[portNum].
isConnected();
338 static_cast<FwAssertArgType>(portNum)
341 return this->m_ready_OutputPort[portNum].
isConnected();
349 static_cast<FwAssertArgType>(portNum)
352 return this->m_recv_OutputPort[portNum].
isConnected();
370 static_cast<FwAssertArgType>(portNum)
402 static_cast<FwAssertArgType>(portNum)
404 return this->m_allocate_OutputPort[portNum].
invoke(
417 static_cast<FwAssertArgType>(portNum)
419 this->m_deallocate_OutputPort[portNum].
invoke(
429 static_cast<FwAssertArgType>(portNum)
431 this->m_ready_OutputPort[portNum].
invoke();
443 static_cast<FwAssertArgType>(portNum)
445 this->m_recv_OutputPort[portNum].
invoke(
461 this->m_guardedPortMutex.
lock();
467 this->m_guardedPortMutex.
unLock();
FwIndexType getNum_deallocate_OutputPorts() const
void invoke(Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus) const
Invoke a port interface.
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
Auto-generated base for TcpServer component.
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
virtual ~TcpServerComponentBase()
Destroy TcpServerComponentBase object.
bool isConnected_ready_OutputPort(FwIndexType portNum)
Status associated with the received data.
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void unLock()
unlock the mutex and assert success
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
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].
PlatformIndexType FwIndexType
void addCallPort(InputByteStreamRecvPort *callPort)
Register an input port.
void init()
Object initializer.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
virtual void unLock()
Unlock the guarded mutex.
FwIndexType getNum_ready_OutputPorts() const
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
const char * toChar() const
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
#define PRI_PlatformIntType
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
Status returned by the send call.
void init()
Initialization function.
virtual void lock()
Lock the guarded mutex.
void invoke() const
Invoke a port interface.
bool isConnected_recv_OutputPort(FwIndexType portNum)
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void init()
Initialization function.
FwIndexType getNum_recv_OutputPorts() const
virtual Drv::SendStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
FwIndexType getNum_send_InputPorts() const
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
void init()
Initialization function.
void lock()
lock the mutex and assert success
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
void ready_out(FwIndexType portNum)
Invoke output port ready.
TcpServerComponentBase(const char *compName="")
Construct TcpServerComponentBase object.
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void init()
Initialization function.