how to create a server ? - WeOnlyDo Discussion board

how to create a server ? (General questions)

by Awen, Monday, April 21, 2008, 04:17 (6060 days ago)

what setps is ,if i don't use the search method to search remote peer?

because i have the static MyID for server and that be setting in the client. i wish i don't need to do the search method both sides (C/S),
because server does not know who will make a connection with it.

Re: how to create a server ?

by wodSupport, Monday, April 21, 2008, 08:25 (6060 days ago) @ Awen

Awen,

why do you want to avoid search method? You could, in theory, call Start with predefined Port on one side, and then just COnnect to that Host/Port on remote side, but this only accept one connection.

What I would suggest is:
1. On the static peer side have mediator running
2. When remote peer wants to connect to static peer, he should search for it using that mediator
3. When static mediator sees someone wants to connect, he should create new instance of wodVPN on the fly, fill in correct name, make it search remote peer, etc..

So, why not creating peers dynamicly?

Kreso