Lines Matching refs:INVALID_SOCKET
480 ret->controlFd = INVALID_SOCKET; in xmlNanoFTPNewCtxt()
509 if (ctxt->controlFd != INVALID_SOCKET) closesocket(ctxt->controlFd); in xmlNanoFTPFreeCtxt()
510 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPFreeCtxt()
565 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPGetMore()
617 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
618 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
646 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPReadResponse()
735 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCheckResponse()
824 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPQuit()
952 if (ctxt->controlFd == INVALID_SOCKET) { in xmlNanoFTPConnect()
963 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
964 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
973 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
974 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1031 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1054 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1060 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1071 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1094 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1095 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1105 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1106 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1126 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1127 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1148 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1149 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1159 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1160 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1170 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1171 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1180 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1181 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1195 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1196 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1201 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1202 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1218 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1219 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1280 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCwd()
1329 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET) || in xmlNanoFTPDele()
1387 if (ctxt == NULL) return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1403 if (ctxt->dataFd == INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1405 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1422 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1423 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1428 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1429 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1434 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1445 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1446 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1448 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1460 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1461 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1463 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1472 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1473 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1486 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1487 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1493 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1494 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1523 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1524 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1528 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1529 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1552 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCloseConnection()
1554 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1566 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1574 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1578 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1739 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPList()
1748 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPList()
1760 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1765 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1781 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1787 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1788 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1792 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1801 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1802 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1840 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1842 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1844 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPGetSocket()
1845 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1855 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1856 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1860 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1861 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1875 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1876 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1880 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1881 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1913 if (xmlNanoFTPGetSocket(ctxt, filename) == INVALID_SOCKET) in xmlNanoFTPGet()
1926 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1932 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1933 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1937 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1946 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1972 if (ctxt->dataFd == INVALID_SOCKET) return(0); in xmlNanoFTPRead()
2013 if (sock == INVALID_SOCKET) { in xmlNanoFTPOpen()
2036 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPClose()
2038 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPClose()
2040 if (ctxt->controlFd != INVALID_SOCKET) { in xmlNanoFTPClose()
2043 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPClose()