注: 此函数仅用于 CVS。
如果选项能够被设置,返回 TRUE,否则返回 FALSE。如果参数 option 不被支持或者给定的参数 value 的值与参数 option 不匹配,则会同时返回一条警告信息。
此函数用来设置给定 FTP 句柄的各种运行时间选项。参数 value 的值取决于参数 option 的改变。截止到目前,被支持的选项有:
表格 1. Supported runtime FTP options
FTP_TIMEOUT_SEC | 改变网络传输的超时时间。参数 value 必须为整数且大于 0。默认的超时时间为 90 秒。 |
FTP_AUTOSEEK | 当此选项打开时,GET or PUT requests with a resumepos or startpos parameter will first seek to the requested position within the file. 此选项默认是打开的。 |