Description Called when mediator receives first packet from one peer.
Return Type
None
Syntax
object.MediatorConnected Owner, IP, Port, FromID, ToID, Data, Allow
The MediatorConnected Method syntax has these parts:
|
object | An expression evaluating to an object of type IwodVPNNotify. | Owner |
A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method. |
IP | A String value.
IP from where search packet arrived. |
Port | A Long value.
Port from where search packet arrived. |
FromID | A String value.
Peer ID that searches other peer. |
ToID | A String value.
Peer ID that is searched for. |
Data | A String value.
Data that is sent to other peer. |
Allow | A Boolean value.
When set to False, peer request is discarded. |
Remarks 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. MediatorConnected
notification method is called when new packet arrives from peer that is
currently not on internal mediator's list. At this time, mediator will
store peer's details and will search internal list to see if peer
searched in ToID is found in the list too. If he is found,
mediator sends packet back to originating Peer with other peer's
information. Nothing more is done by the mediator. If other side wants
to get those details too, it should send search packet again.
|