Home | History | Annotate | Download | only in libxml2

Lines Matching full:datafd

136     SOCKET dataFd;	/* the file descriptor for the data socket */
1395 ctxt->dataFd = socket (AF_INET6, SOCK_STREAM, IPPROTO_TCP);
1401 ctxt->dataFd = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
1406 if (ctxt->dataFd == INVALID_SOCKET) {
1425 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1431 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1437 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1448 if (ctxt->dataFd != INVALID_SOCKET) {
1449 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1463 if (ctxt->dataFd != INVALID_SOCKET) {
1464 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1473 if (connect(ctxt->dataFd, (struct sockaddr *) &dataAddr, dataAddrLen) < 0) {
1475 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1479 getsockname(ctxt->dataFd, (struct sockaddr *) &dataAddr, &dataAddrLen);
1487 if (bind(ctxt->dataFd, (struct sockaddr *) &dataAddr, dataAddrLen) < 0) {
1489 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1492 getsockname(ctxt->dataFd, (struct sockaddr *) &dataAddr, &dataAddrLen);
1494 if (listen(ctxt->dataFd, 1) < 0) {
1496 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1526 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1531 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1535 return(ctxt->dataFd);
1557 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1741 ctxt->dataFd = xmlNanoFTPGetConnection(ctxt);
1742 if (ctxt->dataFd == INVALID_SOCKET)
1750 ctxt->dataFd = xmlNanoFTPGetConnection(ctxt);
1751 if (ctxt->dataFd == INVALID_SOCKET)
1763 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1768 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1776 FD_SET(ctxt->dataFd, &rfd);
1778 FD_SET(ctxt->dataFd, &efd);
1779 res = select(ctxt->dataFd + 1, &rfd, NULL, &efd, &tv);
1784 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1790 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1791 ctxt->dataFd = INVALID_SOCKET;
1795 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1802 if ((len = recv(ctxt->dataFd, &buf[indx], sizeof(buf) - (indx + 1), 0)) < 0) {
1804 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1805 ctxt->dataFd = INVALID_SOCKET;
1846 ctxt->dataFd = xmlNanoFTPGetConnection(ctxt);
1847 if (ctxt->dataFd == INVALID_SOCKET)
1858 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1863 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1878 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1883 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1886 return(ctxt->dataFd);
1923 FD_SET(ctxt->dataFd, &rfd);
1924 res = select(ctxt->dataFd + 1, &rfd, NULL, NULL, &tv);
1929 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1935 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1936 ctxt->dataFd = INVALID_SOCKET;
1940 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1946 if ((len = recv(ctxt->dataFd, buf, sizeof(buf), 0)) < 0) {
1949 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET;
1975 if (ctxt->dataFd == INVALID_SOCKET) return(0);
1979 len = recv(ctxt->dataFd, dest, len, 0);
2039 if (ctxt->dataFd != INVALID_SOCKET) {
2040 closesocket(ctxt->dataFd);
2041 ctxt->dataFd = INVALID_SOCKET;