how to create a server ? (General questions)
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 ?
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