Start Method
      
 

Description

Starts listening and accepting connections.

Return Type

A Long value.  

Syntax

object.Start (Port)

The Start Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type wodVPN.
Port Required. A Long value. Defines port where component will listen.

Remarks

Start method will make wodVPN active, and will start accepting possible connection from remote peer. If Port argument is specified, wodVPN will bind to that UDP port. If Port isn't specified (or is 0), wodVPN will assign new free port and will return it as result of Start method call.

Once component starts, you can call Connect method if you know other peer's Hostname/IP, or you can call Search method to locate remote peer (based on his ID). You can also do nothing - if remote side is the one that will connect to your local peer, then calling Start is sufficient - it will just sit and wait for someone to connect.