Job Management Partner 1/File Transmission Server/FTP Description, Reference and Operator's Guide
Format
#include <apihead.h> #include <winsock.h> BOOL fts_ftp_close( SOCKET sock )
Function
This function releases connection with JP1/FTP.
Arguments
sock
Return value of fts_ftp_open()
Notes
- If fts_ftp_open() 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 winsock 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(). No FTS_API_ERROR_LOGIC
(0x2FFFFF10, 805306128)A logical conflict error occurred in API. No
All Rights Reserved. Copyright (C) 2010, Hitachi, Ltd.