The Connect method will try to connect to remote wodVPN. Connection is made with UDP packets, so no persistent TCP connection is
ever made. Rather, wodVPN implements "reliable UDP" connection between two peers, and forwards all traffic through it.
In order for Connect to be successful, you should provide
Hostname and Port where remote wodVPN listens for incoming connections. It is assumed you have somehow retrieved that information, but if it is not known, you should use
Search method to obtain that information.
If local wodVPN connects to remote wodVPN,
Connected event will be
fired. Initial "handshake" will be performed prior to firing Connected
event. All packets that are sent to remote side are encrypted using AES
algorithm using key set in the
Password property. Both sides, of course, must use same password
otherwise remote peer's data is unreadable.
Once Connected event is fired, you can
Add new channels and start forwarding traffic.