Discuss this help topic in SecureBlackbox Forum



Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event is fired when Windows messages are to be handled.


    event TSBSftpMessageLoopEvent MessageLoop;
    delegate void TSBSftpMessageLoopEvent();

    Event MessageLoop As TSBSftpMessageLoopEvent
    Delegate Sub TSBSftpMessageLoopEvent()

    property MessageLoop : TSBSftpMessageLoopEvent;
    TSBSftpMessageLoopEvent = function : boolean of object;

    void get_MessageLoop(TSBSftpMessageLoopEvent &pMethodOutResult, void * &pDataOutResult);
    void set_MessageLoop(TSBSftpMessageLoopEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSftpMessageLoopEvent)(void * _ObjectData);

    TSBSftpMessageLoopEvent|callable|NULL get_MessageLoop()
    void set_MessageLoop(TSBSftpMessageLoopEvent|callable|NULL $Value)
    callable TSBSftpMessageLoopEvent()

    TSBSftpMessageLoopEvent getMessageLoop();
    void setMessageLoop(TSBSftpMessageLoopEvent Value);
    TSBSftpMessageLoopEvent.Callback MessageLoop = new TSBSftpMessageLoopEvent.Callback() {
        public boolean TSBSftpMessageLoopEventCallback() {


    This event is fired by TElSimpleSFTPClient when the component needs to process Windows messages. Depending on the architecture of your socket communication (synchronous or asynchronous) you can either process some messages from the message queue or just call Sleep(0) or do nothing. Return true if SFTP client can continue or false if blocking operation must be stopped.
    Use this callback function if you wish to process all incoming messages yourself while TElSimpleSFTPClient waits for synchronous server response. If this property is set to nil (null, Nothing), TElSimpleSFTPClient uses its internal message loop to peek and dispatch messages.

Discuss this help topic in SecureBlackbox Forum