
PeerConnected event
Fires when new peer is successfully connected.
Syntax
- C++
void PeerConnected(CVPN *vpn, CP2P *p2p, char *address, int port);
The PeerConnected(vpn,p2p,address,port) syntax has these parts:
The PeerConnected(vpn,p2p,address,port) syntax has these parts:
vpn | Pointer to devVPN instance that fired the event. |
p2p | Pointer to devP2P instance that is connected. |
address | String that contains real IP address of the peer. |
port | Integer that contains port of the peer. |
Remarks
This event is fired after connection with the peer is successfully established. You can now access the peer through his virtual IP address.To use this event, you should implement function by yourself in the code (based on function declaration), and set devVPN.Events.PeerConnected structure member to point to your function.
Platforms
WindowsMac OSX
Linux
BSD
iPhone IOS