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/tools/omfwd.c
static rsRetVal initTCP(wrkrInstanceData_t* pWrkrData)
{
    instanceData* pData;
    DEFiRet;

    pData = pWrkrData->pData;
    if (pData->protocol == FORW_TCP)
    {
        /* create our tcpclt */
        CHKiRet(tcpclt.Construct(&pWrkrData->pTCPClt));
        CHKiRet(tcpclt.SetResendLastOnRecon(pWrkrData->pTCPClt,
                                            pData->bResendLastOnRecon));
        /* and set callbacks */
        CHKiRet(tcpclt.SetSendInit(pWrkrData->pTCPClt, TCPSendInit));
        CHKiRet(tcpclt.SetSendFrame(pWrkrData->pTCPClt, TCPSendFrame));
        CHKiRet(tcpclt.SetSendPrepRetry(pWrkrData->pTCPClt, TCPSendPrepRetry));
        CHKiRet(tcpclt.SetFraming(pWrkrData->pTCPClt, pData->tcp_framing));
        CHKiRet(tcpclt.SetFramingDelimiter(pWrkrData->pTCPClt,
                                           pData->tcp_framingDelimiter));
        CHKiRet(tcpclt.SetRebindInterval(pWrkrData->pTCPClt,
                                         pData->iRebindInterval));
    }
finalize_it:
    RETiRet;
}
/* initialize TCP structures (if necessary) after the instance has been
 * created.
 */
initialize TCP structures (if necessary) after the instance has been
created.
initialize TCP structures ( if necessary ) after the instance has been created .
static rsRetVal initTCP(wrkrInstanceData_t* pWrkrData)
{
    instanceData* pData;
    DEFiRet;
    pData = pWrkrData->pData;
    if (pData->protocol == FORW_TCP)
    {
        CHKiRet(tcpclt.Construct(&pWrkrData->pTCPClt));
        CHKiRet(tcpclt.SetResendLastOnRecon(pWrkrData->pTCPClt,
                                            pData->bResendLastOnRecon));
        CHKiRet(tcpclt.SetSendInit(pWrkrData->pTCPClt, TCPSendInit));
        CHKiRet(tcpclt.SetSendFrame(pWrkrData->pTCPClt, TCPSendFrame));
        CHKiRet(tcpclt.SetSendPrepRetry(pWrkrData->pTCPClt, TCPSendPrepRetry));
        CHKiRet(tcpclt.SetFraming(pWrkrData->pTCPClt, pData->tcp_framing));
        CHKiRet(tcpclt.SetFramingDelimiter(pWrkrData->pTCPClt,
                                           pData->tcp_framingDelimiter));
        CHKiRet(tcpclt.SetRebindInterval(pWrkrData->pTCPClt,
                                         pData->iRebindInterval));
    }
finalize_it:
    RETiRet;
}
static rsRetVal initTCP ( wrkrInstanceData_t * pWrkrData ) { instanceData * pData ; DEFiRet ; pData = pWrkrData -> pData ; if ( pData -> protocol == FORW_TCP ) { CHKiRet ( tcpclt . Construct ( & pWrkrData -> pTCPClt ) ) ; CHKiRet ( tcpclt . SetResendLastOnRecon ( pWrkrData -> pTCPClt , pData -> bResendLastOnRecon ) ) ; CHKiRet ( tcpclt . SetSendInit ( pWrkrData -> pTCPClt , TCPSendInit ) ) ; CHKiRet ( tcpclt . SetSendFrame ( pWrkrData -> pTCPClt , TCPSendFrame ) ) ; CHKiRet ( tcpclt . SetSendPrepRetry ( pWrkrData -> pTCPClt , TCPSendPrepRetry ) ) ; CHKiRet ( tcpclt . SetFraming ( pWrkrData -> pTCPClt , pData -> tcp_framing ) ) ; CHKiRet ( tcpclt . SetFramingDelimiter ( pWrkrData -> pTCPClt , pData -> tcp_framingDelimiter ) ) ; CHKiRet ( tcpclt . SetRebindInterval ( pWrkrData -> pTCPClt , pData -> iRebindInterval ) ) ; } finalize_it : RETiRet ; }
initialize TCP structures (if necessary) after the instance has been
 created.
initialize TCP structures ( if necessary ) after the instance has been created .
/* create our tcpclt */ /* and set callbacks */