MediatorConnected Event
    
 

Description

Fires when mediator receives first packet from one peer.

Syntax

Private Sub object_MediatorConnected(IP, Port, FromID, ToID, Data, Allow)

The MediatorConnected Event syntax has these parts:

PartDescription
objectA wodVPN object.
IPA String value. IP from where search packet arrived.
PortA Long value. Port from where search packet arrived.
FromIDA String value. Peer ID that searches other peer.
ToIDA String value. Peer ID that is searched for.
DataA String value. Data that is sent to other peer.
AllowA Boolean value. When set to False, peer request is discarded.

Remarks

This event fires when new packet arrives from peer that is currently not on internal mediator's list. At this time, mediator will store peer's details and will search internal list to see if peer searched in ToID is found in the list too. If he is found, mediator sends packet back to originating Peer with other peer's information. Nothing more is done by the mediator. If other side wants to get those details too, it should send search packet again.