Lines Matching defs:controlBufIndex
140 int controlBufIndex;
485 ret->controlBufIndex = 0;
516 ctxt->controlBufIndex = -1;
572 if ((ctxt->controlBufIndex < 0) || (ctxt->controlBufIndex > FTP_BUF_SIZE)) {
575 "xmlNanoFTPGetMore : controlBufIndex = %d\n",
576 ctxt->controlBufIndex);
589 if (ctxt->controlBufIndex > ctxt->controlBufUsed) {
592 "xmlNanoFTPGetMore : controlBufIndex > controlBufUsed %d > %d\n",
593 ctxt->controlBufIndex, ctxt->controlBufUsed);
601 if (ctxt->controlBufIndex > 0) {
602 memmove(&ctxt->controlBuf[0], &ctxt->controlBuf[ctxt->controlBufIndex],
603 ctxt->controlBufUsed - ctxt->controlBufIndex);
604 ctxt->controlBufUsed -= ctxt->controlBufIndex;
605 ctxt->controlBufIndex = 0;
619 if ((len = recv(ctxt->controlFd, &ctxt->controlBuf[ctxt->controlBufIndex],
655 * Assumes everything up to controlBuf[controlBufIndex] has been read
665 ptr = &ctxt->controlBuf[ctxt->controlBufIndex];
690 ctxt->controlBufIndex = ctxt->controlBufUsed;
697 ctxt->controlBufIndex = ptr - ctxt->controlBuf;
699 ptr = &ctxt->controlBuf[ctxt->controlBufIndex];