IncomingData Event
    
 

Description

Fires when byte data message arrives from remote side.

Syntax

Private Sub object_IncomingData(Data)

The IncomingData Event syntax has these parts:

PartDescription
objectA wodVPN object.
DataA Variant value. Holds byte array data that was sent from remote side.

Remarks

IncomingData event is fired 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 event is fired instead.