Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.MessageLoop

TElSimpleSFTPClient     


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


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

Declaration

[C#/Java]
    event TSBSftpMessageLoopEvent MessageLoop;
    delegate void TSBSftpMessageLoopEvent();

[VB.NET]
    Event MessageLoop As TSBSftpMessageLoopEvent
    Delegate Sub TSBSftpMessageLoopEvent()

[Pascal]
    property MessageLoop : TSBSftpMessageLoopEvent;
    TSBSftpMessageLoopEvent = function : boolean of object;

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

[PHP]
    TSBSftpMessageLoopEvent|callable|NULL get_MessageLoop()
    void set_MessageLoop(TSBSftpMessageLoopEvent|callable|NULL $Value)
    callable TSBSftpMessageLoopEvent()

Description

    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