Running i!-FTPSender
4
i!-FTPSender
Example Code
(***********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_DEVICE
dvFTPSServer = 0:8:0 // master port for source ftp socket
dvFTPDServer = 0:9:0 // master port for destination ftp socket
TP = 128:1:0
vdvFTPDiag = 33001:1:0 // virtual device for receipt of ftp messages
(***********************************************************)
(* CONSTANT DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_CONSTANT
FTPSServerBusy = 250 // flag if source socket is open
FTPDServerBusy = 251 // flag if destination socket is open
(***********************************************************)
(* DATA TYPE DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_TYPE
(***********************************************************)
(* VARIABLE DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_VARIABLE
CHAR cSourceIP[200]
CHAR cSourceUser[140]
CHAR cSourcePass[140]
CHAR cDestIP[200]
CHAR cDestUser[140]
CHAR cDestPass[140]
CHAR cSFileName[100]
CHAR cDFileName[100]
CHAR cButtonPressed
DEVCHAN dcFTPCopy[] = { {TP,1}, {TP,2}, {TP,3}, {TP,4} }
(***********************************************************)
(* MODULES GO BELOW *)
(***********************************************************)
DEFINE_MODULE 'i!-FTPSenderMod' mdlFTP(vdvFTPDiag,
dvFTPSServer,
dvFTPDServer,
cSourceIP,
cSourceUser,
cSourcePass,
cDestIP,
cDestUser,
cDestPass)
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
(* FTP Copy Button *)
BUTTON_EVENT [dcFTPCopy]
{
PUSH:
Continued
Содержание I!-FTPSENDER
Страница 1: ...instruction manual integration Solutions i FTPSender...
Страница 4: ...ii i FTPSender Table of Contents...
Страница 6: ...Introduction 2 i FTPSender...
Страница 11: ...Running i FTPSender 7 i FTPSender...