I have setup an Indy IdFTP Client to a FileZilla FTP Server.The client tries to Connect on startup of my app and, If it fails, keeps retrying every few seconds for the lifetime of the app. In addition, I need to detect if I lose the connection and, again, keep trying to re-establish the connection. This is where I am having a problem. I have added an OnStatus event handler which seems to fire for all the event types except hsDisconnecting and hsDisconnected. I also have an OnDisconnected event handler which only fires when I have locked the Server, in this case, when I try to connect, it fires the OnConnected then immediately fires the OnDisconnected. However, if I set the Server as not Active after the initial successful connection, the server tells me it has disconnected me but I do not get an event in my code so I don't know I need to start trying to connect again? Am I wrong in expecting these events in this scenario, is there something else I should be listening for? Thank you in advance for your help.
Indy FTP Client OnStatus not getting Disconnect events
381 Views Asked by Lauren Eaton At
0
There are 0 best solutions below
Related Questions in EVENTS
- OpenLayer 3: Map pointer up event can not be triggered when the map created on overlay
- Angular scroll directive
- Setting multiple events in one ext.net button
- Detect if Application was suspended in OnNavigatedFrom for Windows Phone 8
- When in click a radio button, it scroll to the top. How to prenvent that?
- Event subscribed but null in child class (after threads initialize)
- How to get results each sec from "perf stat -d sleep 1000"
- How to register event for TextBox end editing
- Stop the installshield installation if a file is not found in vb.net
- How to capture the next event based on a condition
- Flask server to notify webclient when changes occur
- Google analytics event tracking, retrieve results
- What is the correct way to code event handlers for serializable model objects?
- Android version of NSNotificationCenter (event binding)
- Center JoptionPaneMessageDialog in parent element of the source element that generated the event
Related Questions in FTP
- Site code to enable UTF-8 to EBCDIC encoding
- Images not showing when uploaded to server
- Batch file: map a FTP server
- Checking FTP folder for filenames in HTML
- Problems uploading file within a do while loop
- C# FTP server never receives incoming transfer connection after processing EPRT command
- I get 530 access denied in ftp connection after some upgrade in my internet connection
- Need to create a simple script for ftp login
- Unable to send file from ftp to another ftp
- How to upload any file to FTP Server using Google Apps Script
- Upload file to ftp with unique name in asp.net c#
- ftp_rawlist not running for huge directories
- How to login FTP with empty password in C#?
- View an image available in ftp
- Laravel 5 on shared hosting getting internal server error
Related Questions in CLIENT
- Does javascript saves server's electricity?
- What client manager for postgres do you use? Phpmyadmin analog for postgres
- Haxe server-client exchange on all platforms
- Deploying Client/Server Java Application
- Python Multiplayer noughts and crosses
- Multithreaded Server in Java - connection timeout exception while connecting from other computer
- Meteor client call to server not returning data
- How I can send a object from Client to Server in Java?
- ShouldoverrideUrlLoading not called on samsung galaxy and HTC devices
- Simple client server to send XML information to CRUD database
- Python Networking
- How to create zip file with maven: Java Client + JRE
- Client side password hash versus plain text
- Why can't I send Serializable Object with ObjectOutputStream in Java?
- Communicating with WebSocket server using a TCP class
Related Questions in INDY
- working with IdHTTPProxyServer1
- Delphi download multithreading
- Delphi Indy HTTP.GET high cpu usage
- Threads: Send data to a specific active thread
- Indy TCP client in thread
- Delphi XE5 Isapi on Windows 2003 R2 server
- Indy 10 raising an unwanted exception
- Delphi Bug in Indy FTP List method?
- How to use capabilities property of TidIMAP4?
- TCameraComponent and TVideoCaptureDevice do not initialize in Win32
- ¿How can I send and recieve strings from tidtcpclient and tidtcpserver and to create a chat?
- Delphi - Send stream using IdCmdTCPServer to a Client
- Need to send data from TServersocket to TidTcpClient
- Delphi: Indy TIdTCPClient Reading XML
- Delphi 7 idHTTP JSON Data Null Result
Related Questions in DISCONNECT
- nodejs socket.io socket file not close after disconnect
- USB keeps disconnecting...only for mobile devices
- Kafka 0.8.2 throws java.nio.channels.ClosedByInterruptException
- How to detect/handle USB device disconnect during test run?
- PHP detecting TCP client disconnect
- Disconnect Mutation Observer from Callback Function
- SSH.Net SftpClient: do I need to call Disconnect within using block?
- Android - Bluetooth Writing Event
- How to detect when a user leaves the site?
- How do I handle disconnected user in meteor / iron:router
- Indy FTP Client OnStatus not getting Disconnect events
- Android httpURLConnection already running
- Multipeer Connectivity - programmatically disconnect a peer
- Must HTTP clients close their connection
- Disconnecting app in quickbooks v3 api
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?