Mediator Property
      
 

Description

Returns reference to mediator's details..

Property type

A VPNMediator object.  

Syntax

object.Mediator

The Mediator Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type wodVPN.

Remarks

Mediator property will return reference to VPNMediator object - where you can set up your own mediator. We suggest that you take new instance of wodVPN for mediation, don't reuse existing wodVPN peer's instance.

Mediator can be started on, for example, port 8000 as easy as this:

wodVPN1.Mediator.Start SrchUDPSingle, 8000

After mediator is started, you can check MediatorConnected, MediatorDisconnected and MediatorExchangeData events to keep track of people connecting to your mediator. Only one mediator can be run using one instance. If you want more than one mediator (at different ports), just create several wodVPN instances.