FTP no events are raised

kalarius

Active Member
Licensed User
Longtime User
this my simple code
B4X:
Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
Dim FTP As FTP
Dim isOK =False As Boolean

End Sub

Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   'Activity.LoadLayout("Layout1")

FTP.Initialize("ftp","ftp.loggames.kalarakis.com",21,"loggames","loggames@@1")

FTP.SendCommand("LOGIN","")
FTP.SendCommand("USER","loggagames")
FTP.SendCommand("PASS","loggames@@1")

Do Until isOK=True
DoEvents
Loop

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub ftp_DownloadCompleted (ServerPath As String, Success As Boolean)

isOK=True

End Sub


Sub ftp_CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
Log(Command)
Log(ReplyString)

End Sub

the ftp server is real and username and password It is my public ftp

I sent to server 3 commands but no events are raised

please help
 
Top