fts_ftp_close() - release connection with JP1/FTP
- Organization of this page
Format
#include <winsock2.h> #include <apihead.h> BOOL fts_ftp_close( SOCKET sock )
Function
This function releases connection with JP1/FTP.
Arguments
sock
Return value of fts_ftp_open_ex()
Notes
-
If fts_ftp_open_ex() has terminated normally, make sure that you call this function after all transmission registration processing is finished.
-
If you wish to obtain the extended error information, do not call any function before you call the WSAGetLastError function. If you call another function before the WSAGetLastError function, the information might be lost.
Return values
TRUE |
Normal |
FALSE |
Abnormal |
To obtain extended error information, call the WSAGetLastError function. The table below lists and describes the return values for the extended error information. For details about other errors, see the MSDN documentation.
Return value of extended error information (hexadecimal, decimal) |
Description |
Can be retried? |
---|---|---|
FTS_API_ERROR_INVALIDSOCK (0x2FFFFF0A, 805306122) |
An invalid argument was specified. This might not be a return value of fts_ftp_open_ex(). |
No |
FTS_API_ERROR_LOGIC (0x2FFFFF10, 805306128) |
A logical conflict error occurred in API. |
No |