Lines Matching refs:packetLen

1174     int packetLen;  in readReq()  local
1192 packetLen = verifyHeader( &pReq->m_pHeader->m_pktHeader, LSAPI_BEGIN_REQUEST ); in readReq()
1193 if ( packetLen < 0 ) in readReq()
1198 if ( packetLen > LSAPI_MAX_HEADER_LEN ) in readReq()
1204 if ( packetLen + 1024 > pReq->m_reqBufSize ) in readReq()
1206 if ( allocateBuf( pReq, packetLen + 1024 ) == -1 ) in readReq()
1209 while( packetLen > pReq->m_bufRead ) in readReq()
1211 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1216 if ( parseRequest( pReq, packetLen ) < 0 ) in readReq()
1230 pReq->m_bufProcessed = packetLen; in readReq()
1597 ssize_t packetLen; in LSAPI_Write_r() local
1633 packetLen = toWrite + bufLen; in LSAPI_Write_r()
1634 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_r()
1636 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_r()
1637 toWrite = packetLen - bufLen; in LSAPI_Write_r()
1641 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_r()
1642 pReq->m_totalLen += packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_r()
1839 ssize_t packetLen; in LSAPI_Write_Stderr_r() local
1857 while( ( packetLen = pEnd - p ) > 0 ) in LSAPI_Write_Stderr_r()
1859 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_Stderr_r()
1861 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_Stderr_r()
1865 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_Stderr_r()
1866 totalLen = packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_Stderr_r()
1872 iov[1].iov_len = packetLen; in LSAPI_Write_Stderr_r()
1873 p += packetLen; in LSAPI_Write_Stderr_r()