This method is called
only if you have implemented the
IwodVPNNotify interface in your
application and the wodVPN1.Notification
property has received a reference to an instance of your implementation.
RelayConnected notification method will be called when first packet is
received from one of the peers. As you expect, two RelayConnected method
should be called (one for each peer) in order for connection between
peers to be successful. You can use method arguments to determine if you
will accept the peer or not. If you don't wish to accept the peer,
there's not much you can do except to close the relay, since relays are
using UDP packets and you cannot prevent yourself from receiving packets
from that peer.
You can, however, set LeftIP/RightIP/LeftPort/RightPort
properties before (or even during) connection occurs. When those values
are known, wodVPN will ignore all other packets anyway. However, if you
set those properties, this event will never fire since peer is known
already.
ID value will be known only if you set the
Password property, and it
is set to the same password used by peers.