Lines Matching refs:packetLen
1366 int packetLen; in readReq() local
1384 packetLen = verifyHeader( &pReq->m_pHeader->m_pktHeader, LSAPI_BEGIN_REQUEST ); in readReq()
1385 if ( packetLen < 0 ) in readReq()
1390 if ( packetLen > LSAPI_MAX_HEADER_LEN ) in readReq()
1396 if ( packetLen + 1024 > pReq->m_reqBufSize ) in readReq()
1398 if ( allocateBuf( pReq, packetLen + 1024 ) == -1 ) in readReq()
1401 while( packetLen > pReq->m_bufRead ) in readReq()
1403 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1408 if ( parseRequest( pReq, packetLen ) < 0 ) in readReq()
1422 pReq->m_bufProcessed = packetLen; in readReq()
1846 ssize_t packetLen; in LSAPI_Write_r() local
1886 packetLen = toWrite + bufLen; in LSAPI_Write_r()
1887 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_r()
1889 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_r()
1890 toWrite = packetLen - bufLen; in LSAPI_Write_r()
1894 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_r()
1895 pReq->m_totalLen += packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_r()
2130 ssize_t packetLen; in LSAPI_Write_Stderr_r() local
2148 while( ( packetLen = pEnd - p ) > 0 ) in LSAPI_Write_Stderr_r()
2150 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_Stderr_r()
2152 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_Stderr_r()
2156 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_Stderr_r()
2157 totalLen = packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_Stderr_r()
2163 iov[1].iov_len = packetLen; in LSAPI_Write_Stderr_r()
2164 p += packetLen; in LSAPI_Write_Stderr_r()