openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/tcpsrv.c
static rsRetVal addTcpLstn(void* pUsr, netstrm_t* pLstn)
{
    tcpLstnPortList_t* pPortList = (tcpLstnPortList_t*)pUsr;
    tcpsrv_t* pThis = pPortList->pSrv;
    DEFiRet;

    ISOBJ_TYPE_assert(pThis, tcpsrv);
    ISOBJ_TYPE_assert(pLstn, netstrm);

    if (pThis->iLstnCurr >= pThis->iLstnMax)
        ABORT_FINALIZE(RS_RET_MAX_LSTN_REACHED);

    pThis->ppLstn[pThis->iLstnCurr] = pLstn;
    pThis->ppLstnPort[pThis->iLstnCurr] = pPortList;
    ++pThis->iLstnCurr;

finalize_it:
    RETiRet;
}
/* add a listen socket to our listen socket array. This is a callback
 * invoked from the netstrm class. -- rgerhards, 2008-04-23
 */
add a listen socket to our listen socket array. This is a callback
invoked from the netstrm class.
add a listen socket to our listen socket array . This is a callback invoked from the netstrm class .
static rsRetVal addTcpLstn(void* pUsr, netstrm_t* pLstn)
{
    tcpLstnPortList_t* pPortList = (tcpLstnPortList_t*)pUsr;
    tcpsrv_t* pThis = pPortList->pSrv;
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, tcpsrv);
    ISOBJ_TYPE_assert(pLstn, netstrm);
    if (pThis->iLstnCurr >= pThis->iLstnMax)
        ABORT_FINALIZE(RS_RET_MAX_LSTN_REACHED);
    pThis->ppLstn[pThis->iLstnCurr] = pLstn;
    pThis->ppLstnPort[pThis->iLstnCurr] = pPortList;
    ++pThis->iLstnCurr;
finalize_it:
    RETiRet;
}
static rsRetVal addTcpLstn ( void * pUsr , netstrm_t * pLstn ) { tcpLstnPortList_t * pPortList = ( tcpLstnPortList_t * ) pUsr ; tcpsrv_t * pThis = pPortList -> pSrv ; DEFiRet ; ISOBJ_TYPE_assert ( pThis , tcpsrv ) ; ISOBJ_TYPE_assert ( pLstn , netstrm ) ; if ( pThis -> iLstnCurr >= pThis -> iLstnMax ) ABORT_FINALIZE ( RS_RET_MAX_LSTN_REACHED ) ; pThis -> ppLstn [ pThis -> iLstnCurr ] = pLstn ; pThis -> ppLstnPort [ pThis -> iLstnCurr ] = pPortList ; ++ pThis -> iLstnCurr ; finalize_it : RETiRet ; }
add a listen socket to our listen socket array.
add a listen socket to our listen socket array .