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 initTCPListener(tcpsrv_t* pThis, tcpLstnPortList_t* pPortEntry)
{
    DEFiRet;
    uchar* TCPLstnPort;

    ISOBJ_TYPE_assert(pThis, tcpsrv);
    assert(pPortEntry != NULL);

    TCPLstnPort = pPortEntry->pszPort;

    // pPortEntry->pszAddr = NULL ==> bind to all interfaces
    CHKiRet(netstrm.LstnInit(pThis->pNS, (void*)pPortEntry, addTcpLstn,
                             TCPLstnPort, pPortEntry->pszAddr, pThis->iSessMax,
                             pThis->pszLstnPortFileName));

finalize_it:
    RETiRet;
}
/* Initialize TCP listener socket for a single port
 * rgerhards, 2009-05-21
 */
Initialize TCP listener socket for a single port
rgerhards, 2009-05-21
Initialize TCP listener socket for a single port rgerhards 2009 - 05 - 21
static rsRetVal initTCPListener(tcpsrv_t* pThis, tcpLstnPortList_t* pPortEntry)
{
    DEFiRet;
    uchar* TCPLstnPort;
    ISOBJ_TYPE_assert(pThis, tcpsrv);
    assert(pPortEntry != NULL);
    TCPLstnPort = pPortEntry->pszPort;
    CHKiRet(netstrm.LstnInit(pThis->pNS, (void*)pPortEntry, addTcpLstn,
                             TCPLstnPort, pPortEntry->pszAddr, pThis->iSessMax,
                             pThis->pszLstnPortFileName));
finalize_it:
    RETiRet;
}
static rsRetVal initTCPListener ( tcpsrv_t * pThis , tcpLstnPortList_t * pPortEntry ) { DEFiRet ; uchar * TCPLstnPort ; ISOBJ_TYPE_assert ( pThis , tcpsrv ) ; assert ( pPortEntry != NULL ) ; TCPLstnPort = pPortEntry -> pszPort ; CHKiRet ( netstrm . LstnInit ( pThis -> pNS , ( void * ) pPortEntry , addTcpLstn , TCPLstnPort , pPortEntry -> pszAddr , pThis -> iSessMax , pThis -> pszLstnPortFileName ) ) ; finalize_it : RETiRet ; }
Initialize TCP listener socket for a single port
 rgerhards, 2009-05-21
Initialize TCP listener socket for a single port rgerhards 2009 - 05 - 21
// pPortEntry->pszAddr = NULL ==> bind to all interfaces