Lines Matching refs:controlBufIndex
133 int controlBufIndex; member
478 ret->controlBufIndex = 0; in xmlNanoFTPNewCtxt()
511 ctxt->controlBufIndex = -1; in xmlNanoFTPFreeCtxt()
567 if ((ctxt->controlBufIndex < 0) || (ctxt->controlBufIndex > FTP_BUF_SIZE)) { in xmlNanoFTPGetMore()
571 ctxt->controlBufIndex); in xmlNanoFTPGetMore()
584 if (ctxt->controlBufIndex > ctxt->controlBufUsed) { in xmlNanoFTPGetMore()
588 ctxt->controlBufIndex, ctxt->controlBufUsed); in xmlNanoFTPGetMore()
596 if (ctxt->controlBufIndex > 0) { in xmlNanoFTPGetMore()
597 memmove(&ctxt->controlBuf[0], &ctxt->controlBuf[ctxt->controlBufIndex], in xmlNanoFTPGetMore()
598 ctxt->controlBufUsed - ctxt->controlBufIndex); in xmlNanoFTPGetMore()
599 ctxt->controlBufUsed -= ctxt->controlBufIndex; in xmlNanoFTPGetMore()
600 ctxt->controlBufIndex = 0; in xmlNanoFTPGetMore()
614 if ((len = recv(ctxt->controlFd, &ctxt->controlBuf[ctxt->controlBufIndex], in xmlNanoFTPGetMore()
660 ptr = &ctxt->controlBuf[ctxt->controlBufIndex]; in xmlNanoFTPReadResponse()
685 ctxt->controlBufIndex = ctxt->controlBufUsed; in xmlNanoFTPReadResponse()
692 ctxt->controlBufIndex = ptr - ctxt->controlBuf; in xmlNanoFTPReadResponse()
694 ptr = &ctxt->controlBuf[ctxt->controlBufIndex]; in xmlNanoFTPReadResponse()