10 #if FW_ENABLE_TEXT_LOGGING 26 #if !FW_DIRECT_PORT_CALLS 33 this->m_recvReturnIn_InputPort[port].
init();
38 this->m_recvReturnIn_InputPort[port].
setPortNum(port);
40 #if FW_OBJECT_NAMES == 1 44 this->m_objName.toChar(),
47 this->m_recvReturnIn_InputPort[port].setObjName(portName.
toChar());
52 #if !FW_DIRECT_PORT_CALLS 59 this->m_send_InputPort[port].
init();
66 #if FW_OBJECT_NAMES == 1 70 this->m_objName.toChar(),
73 this->m_send_InputPort[port].setObjName(portName.
toChar());
78 #if !FW_DIRECT_PORT_CALLS 85 this->m_allocate_OutputPort[port].
init();
87 #if FW_OBJECT_NAMES == 1 91 this->m_objName.toChar(),
94 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
99 #if !FW_DIRECT_PORT_CALLS 106 this->m_deallocate_OutputPort[port].
init();
108 #if FW_OBJECT_NAMES == 1 112 this->m_objName.toChar(),
115 this->m_deallocate_OutputPort[port].setObjName(portName.
toChar());
120 #if !FW_DIRECT_PORT_CALLS 127 this->m_ready_OutputPort[port].
init();
129 #if FW_OBJECT_NAMES == 1 133 this->m_objName.toChar(),
136 this->m_ready_OutputPort[port].setObjName(portName.
toChar());
141 #if !FW_DIRECT_PORT_CALLS 148 this->m_recv_OutputPort[port].
init();
150 #if FW_OBJECT_NAMES == 1 154 this->m_objName.toChar(),
157 this->m_recv_OutputPort[port].setObjName(portName.
toChar());
163 #if !FW_DIRECT_PORT_CALLS 174 static_cast<FwAssertArgType>(portNum)
177 return &this->m_recvReturnIn_InputPort[portNum];
185 static_cast<FwAssertArgType>(portNum)
188 return &this->m_send_InputPort[portNum];
193 #if !FW_DIRECT_PORT_CALLS 207 static_cast<FwAssertArgType>(portNum)
210 this->m_allocate_OutputPort[portNum].
addCallPort(port);
221 static_cast<FwAssertArgType>(portNum)
224 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
235 static_cast<FwAssertArgType>(portNum)
238 this->m_ready_OutputPort[portNum].
addCallPort(port);
249 static_cast<FwAssertArgType>(portNum)
252 this->m_recv_OutputPort[portNum].
addCallPort(port);
257 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 266 Fw::InputSerializePort* port
271 static_cast<FwAssertArgType>(portNum)
274 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
280 Fw::InputSerializePort* port
285 static_cast<FwAssertArgType>(portNum)
288 this->m_ready_OutputPort[portNum].registerSerialPort(port);
294 Fw::InputSerializePort* port
299 static_cast<FwAssertArgType>(portNum)
302 this->m_recv_OutputPort[portNum].registerSerialPort(port);
313 Fw::PassiveComponentBase(compName)
324 #if !FW_DIRECT_PORT_CALLS 335 static_cast<FwAssertArgType>(portNum)
338 return this->m_allocate_OutputPort[portNum].
isConnected();
346 static_cast<FwAssertArgType>(portNum)
349 return this->m_deallocate_OutputPort[portNum].
isConnected();
357 static_cast<FwAssertArgType>(portNum)
360 return this->m_ready_OutputPort[portNum].
isConnected();
368 static_cast<FwAssertArgType>(portNum)
371 return this->m_recv_OutputPort[portNum].
isConnected();
391 static_cast<FwAssertArgType>(portNum)
416 static_cast<FwAssertArgType>(portNum)
436 #if !FW_DIRECT_PORT_CALLS 450 static_cast<FwAssertArgType>(portNum)
454 this->m_allocate_OutputPort[portNum].isConnected(),
455 static_cast<FwAssertArgType>(portNum)
457 return this->m_allocate_OutputPort[portNum].
invoke(
470 static_cast<FwAssertArgType>(portNum)
474 this->m_deallocate_OutputPort[portNum].isConnected(),
475 static_cast<FwAssertArgType>(portNum)
477 this->m_deallocate_OutputPort[portNum].
invoke(
487 static_cast<FwAssertArgType>(portNum)
491 this->m_ready_OutputPort[portNum].isConnected(),
492 static_cast<FwAssertArgType>(portNum)
494 this->m_ready_OutputPort[portNum].
invoke();
506 static_cast<FwAssertArgType>(portNum)
510 this->m_recv_OutputPort[portNum].isConnected(),
511 static_cast<FwAssertArgType>(portNum)
513 this->m_recv_OutputPort[portNum].
invoke(
531 this->m_guardedPortMutex.
lock();
537 this->m_guardedPortMutex.
unLock();
544 void TcpServerComponentBase ::
568 return compPtr->send_handlerBase(
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke output port recv.
Auto-generated base for TcpServer component.
Fw::InputBufferSendPort * get_recvReturnIn_InputPort(FwIndexType portNum)
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
PlatformSizeType FwSizeType
virtual ~TcpServerComponentBase()
Destroy TcpServerComponentBase object.
static constexpr FwIndexType getNum_deallocate_OutputPorts()
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
bool isConnected_ready_OutputPort(FwIndexType portNum) const
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
static constexpr FwIndexType getNum_recvReturnIn_InputPorts()
void unLock()
unlock the mutex and assert success
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
virtual Drv::ByteStreamStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
void init()
Object initializer.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
virtual void unLock()
Unlock the guarded mutex.
void addCallPort(InputByteStreamDataPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_recv_OutputPorts()
Status returned by the send call.
virtual void recvReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port recvReturnIn.
void invoke(Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke a port connection.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port connection.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
bool isConnected_recv_OutputPort(FwIndexType portNum) const
const char * toChar() const
Convert to a C-style char*.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
static constexpr FwIndexType getNum_ready_OutputPorts()
Fw::Buffer invoke(FwSizeType size) const
Drv::ByteStreamStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
bool isConnected_allocate_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
bool isConnected_deallocate_OutputPort(FwIndexType portNum) const
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to recv[portNum].
virtual void lock()
Lock the guarded mutex.
void init()
Initialization function.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
static constexpr FwIndexType getNum_allocate_OutputPorts()
PlatformIndexType FwIndexType
void invoke() const
Invoke a port connection.
void init()
Initialization function.
Implementation of malloc based allocator.
void ready_out(FwIndexType portNum) const
Invoke output port ready.
static constexpr FwIndexType getNum_send_InputPorts()
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
void init()
Initialization function.
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
void lock()
lock the mutex and assert success
TcpServerComponentBase(const char *compName="")
Construct TcpServerComponentBase object.