Lines Matching refs:INVALID_SOCKET
511 ret->controlFd = INVALID_SOCKET; in xmlNanoFTPNewCtxt()
540 if (ctxt->controlFd != INVALID_SOCKET) closesocket(ctxt->controlFd); in xmlNanoFTPFreeCtxt()
541 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPFreeCtxt()
596 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPGetMore()
648 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
649 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPGetMore()
677 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPReadResponse()
766 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCheckResponse()
855 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPQuit()
983 if (ctxt->controlFd == INVALID_SOCKET) { in xmlNanoFTPConnect()
994 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
995 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1004 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1005 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1062 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1085 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1091 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1102 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1125 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1126 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1136 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1137 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1157 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1158 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1179 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1180 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1190 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1191 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1201 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1202 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1211 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1212 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1226 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1227 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1232 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1233 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1249 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1250 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPConnect()
1312 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCwd()
1361 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET) || in xmlNanoFTPDele()
1419 if (ctxt == NULL) return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1435 if (ctxt->dataFd == INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1437 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1454 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1455 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1460 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1461 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1466 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1477 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1478 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1480 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1492 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPGetConnection()
1493 closesocket (ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1495 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1504 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1505 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1518 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1519 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1525 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1526 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1555 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1556 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1560 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetConnection()
1561 return INVALID_SOCKET; in xmlNanoFTPGetConnection()
1584 if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET)) return(-1); in xmlNanoFTPCloseConnection()
1586 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1598 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1606 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1610 closesocket(ctxt->controlFd); ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPCloseConnection()
1771 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPList()
1780 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPList()
1792 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1797 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1813 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1819 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1820 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1824 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1833 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1834 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPList()
1872 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1874 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1876 if (ctxt->dataFd == INVALID_SOCKET) in xmlNanoFTPGetSocket()
1877 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1887 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1888 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1892 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1893 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1907 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1908 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1912 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGetSocket()
1913 return INVALID_SOCKET; in xmlNanoFTPGetSocket()
1945 if (xmlNanoFTPGetSocket(ctxt, filename) == INVALID_SOCKET) in xmlNanoFTPGet()
1958 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1964 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1965 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1969 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
1978 closesocket(ctxt->dataFd); ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPGet()
2004 if (ctxt->dataFd == INVALID_SOCKET) return(0); in xmlNanoFTPRead()
2045 if (sock == INVALID_SOCKET) { in xmlNanoFTPOpen()
2068 if (ctxt->dataFd != INVALID_SOCKET) { in xmlNanoFTPClose()
2070 ctxt->dataFd = INVALID_SOCKET; in xmlNanoFTPClose()
2072 if (ctxt->controlFd != INVALID_SOCKET) { in xmlNanoFTPClose()
2075 ctxt->controlFd = INVALID_SOCKET; in xmlNanoFTPClose()