Opened 15 years ago
Closed 15 years ago
#1228 closed Feature Request (Completed)
FTPEx.au3 missing callback parameter for some functions.
Reported by: | Beege | Owned by: | Jpm |
---|---|---|---|
Milestone: | 3.3.1.5 | Component: | Standard UDFs |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
Each one of these functions use another function that allows a callback($l_Context) to be passed, but dosent include an option to pass the callback.
_FTP_DirPutContents uses _FTP_FilePut
_Ftp_ListToArray, _Ftp_ListToArray2D, _FTP_ListToArrayEx all use Internel _FTP_ListToArray which uses _FTP_FindFileFirst.
One small problem(not really a problem) that i ran into with this is that if you use a callback with _FTP_Connect, every time you use these functions _FTP_Connect reports that a handle has been created. Since the callback is not passed to the any of these functions, they do not report that the handle is being closed which made it apperar like I had all these open handles or something.
Documentation changes to $l_Context discription. Here is the current descriptions:
_FTP_Connect - 'Optional, I dont got a clue what this does.'
_FTP_FileOpen - '(Not Used) See notes below.
_FTP_FileGet - '(Not Used) in case someone can use it.'
_FTP_FilePut - '(Not Used) in case someone can use it.'
_FTP_FindFileFirst - '(Not Used) in case someone can use it.'
_FTP_Command - 'Optional, A pointer to a variable that contains an application-defined value used to identify the application context in callback operations'
I feel that all of these descriptions should be the same. Having them all point to _FTP_FileOpen might be good because that function includes a true desription about what it is and the requirements(InternetSetStatusCallback) to use it.
THANKYOU FOR AUTOIT!
Attachments (2)
Change History (10)
comment:1 Changed 15 years ago by Beege
comment:2 Changed 15 years ago by Jpm
- Component changed from AutoIt to Standard UDFs
- Owner set to Gary
can you post a script that make the callback being access?
Thanks
About Doc I was what Wouter designer submitted.
As soon a workable solution of defining a callback function we will update it.
Changed 15 years ago by Beege
comment:3 Changed 15 years ago by Beege
Gary, Here is the script you asked for. I also include some suggestions for the callback. Thanks again and please let me know if theres ever anything else I can do to help!
comment:4 Changed 15 years ago by Beege
I forgot one parameter in _FTP_DirPutContents(). The Section that calls itself if is a recursive upload.
If $b_RecursivePut Then
_FTP_DirPutContents() <<<<<<<<<<<<<<< This needs to also have $l_Context
EndIf
comment:5 Changed 15 years ago by Jpm
@Beege
Thanks for the changes.
But I miss a complete working example using _FTP_SetStatusCallBack() that I can include in the doc.
comment:6 Changed 15 years ago by Beege
@Jpm
Here is a complete working example of _FTP_SetStatusCallback(). I also added more comments for clarity. As always let me know if forgot something or can help with anything for autoit.
Changed 15 years ago by anonymous
comment:7 Changed 15 years ago by Beege
I did it again..
Line 99 is suppose to be $_ghCallback_FTP = $CallBack_Register
comment:8 Changed 15 years ago by Jpm
- Milestone set to 3.3.1.5
- Owner changed from Gary to Jpm
- Resolution set to Completed
- Status changed from new to closed
Added in version: 3.3.1.5
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
I Should have set component to standard UDF's. Sorry about that.