Re: How wodVPN Works? - WeOnlyDo Discussion board

Re: How wodVPN Works? (General questions)

by woddrazen, Tuesday, June 26, 2012, 13:50 (4483 days ago) @ Diab

Diab,


Here is code snippet how to start your own mediator.
[code]WODVPNCOMLib.wodVPNCom med;
private void Form1_Load(object sender, EventArgs e)
{
med = new WODVPNCOMLib.wodVPNCom();
med.MediatorConnected += new WODVPNCOMLib._IwodVPNComEvents_MediatorConnectedEventHandler(med_MediatorConnected);
med.Mediator.Start(WODVPNCOMLib.SearchEnum.SrchUDPSingle,8000);
}

void med_MediatorConnected(string IP, int Port, string FromID, string ToID, string Data, ref bool Allow)
{
Allow = true;
}[/code]
You need to point peers to connect to your mediator inside Search Method.

Let us know how it goes.


Drazen


Complete thread: