send函数给FTP服务器发消息,SendFTP

SendFTP

Sends a file at the address, specified in the setting window of the "FTP" tab.

boolSendFTP(

stringfilename,// file to be send by ftp

stringftp_path=NULL// ftp catalog

);

Parameters

filename

[in] Name of sent file.

ftp_path=NULL

[in] FTP catalog. If a directory is not specified, directory described in settings is used.

Return Value

In case of failure returns false.

Note

Sent file must be located in the folderterminal_directoryMQL4filesor its subfolders. Sending isnt performed if FTP address and/or access password are not specified in settings.

SendFTP() function does not work in the Strategy Tester.

Whats new in MQL5

In MQL5, the SendFTP, SendMail and SendNotification functions are moved to the new extended Network functions section. Now programs can exchange data with remote servers included in the list of allowed IP addresses. This means that MQL5 EAs are able to establish secure connections between processes using the TCP/IP protocol without using third-party DLLs.

SendFTP Sends a file at the address, specified in the setting window of the "FTP" tab. boolSendFTP( stringfilename,// file to be send by ftp stringftp_path=NULL// ftp catalog ); Parameters filename [in] Name of sent file. ftp_path=NULL [in] FTP catalog. If a directory is not specified, directory described in settings is used. Return Value In case of failure returns false. Note Sent file must be located in the folderterminal_directoryMQL4filesor its subfolders. Sending isnt performed if FTP address and/or access password are not specified in settings. SendFTP() function does not work in the Strategy Tester. Whats new in MQL5 In MQL5, the SendFTP, SendMail and SendNotification functions are moved to the new extended Network functions section. Now programs can exchange data with remote servers included in the list of allowed IP addresses. This means that MQL5 EAs are able to establish secure connections between processes using the TCP/IP protocol without using third-party DLLs.
经验分享 程序员 微信小程序 职场和发展