IncomingData Method
      
 

Description

Called when byte data message arrives from remote side.

Return Type

None  

Syntax

object.IncomingData Owner, Data

The IncomingData Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type IwodVPNNotify.
Owner A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method.
DataA Variant value. Holds byte array data that was sent from remote side.

Remarks

This method is called only if you have implemented the IwodVPNNotify interface in your application and the wodVPN1.Notification property has received a reference to an instance of your implementation.

IncomingData notification method is called when remote side has sent us some data using SendData method. You should retrieve it as byte array (for C++ users this is SAFEARRAY(VT_ARRAY | VT_UI1).

If you prefer to send/receive text messages, use SendText so that IncomingText notification method is called instead.