Back to product page

Blocking property


Determines if methods are blocking.

Type

A Boolean value. When set to True forces wodFtpDLX to execute methods in blocking manner - waits until method completes

Syntax

  • Basic
object.Blocking [= value]
The Blocking(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
valueA Boolean value.

Remarks

This property is only available in COM version of the component (wodFtpDLXCom).

Blocking mode is ideal for scripting environments when you cannot use asynchronous connections. Although events are still fired, you can just ignore them and check if error occurred during method execution.

Difference between blocking and non-blocking operation may be shown using Connect method.

If Blocking is set to True, wodFtpDLX will wait until it actually connects with remote server. Once Connected, control will be given back to your program and you can continue with execution of it. If an error is generated, it will be returned immediately.

If Blocking is set to False, wodFtpDLX will immediately return once Connect is called, no matter if it managed to connect with remote server or not (at that particular moment). Later, you should wait for Connected event to be fired to determine if connection is successful or not.

Platforms

Windows