Description Adds a new tunneling channel.
Return Type
A VPNChannel object.
Syntax
object.Add (Type, [LocalAddress], LocalPort, [RemoteAddress], [RemotePort])
The Add Method syntax has these parts:
|
object | An expression evaluating to an object of type VPNChannels. | Type | Required. A ChannelTypesEnum enumeration, as described in settings. Determines type of the channel, whether is it TCP/UDP, whether it listens locally or remotely. | LocalAddress | Optional. A String value. Holds address accessible from local wodVPN. | LocalPort | Required. A Long value. Holds port accessible from local wodVPN. | RemoteAddress | Optional. A String value. Holds address accessible from remote wodVPN. | RemotePort | Optional. A Long value. Holds port accessible from remote wodVPN. |
Settings The settings for Type are:
| TCPLocalListen | 0 | Listens on local TCP port, forwards connection through wodVPN to remote address. |
| TCPRemoteListen | 1 | Listens on remote TCP port, forwards connection through wodVPN to local address. |
| UDPLocalListen | 2 | Listens on local UDP port, forwards connection through wodVPN to remote address. |
| UDPRemoteListen | 3 | Listens on remote UDP port, forwards connection through wodVPN to remote address. |
| TCPSocksProxy | 4 | Listens on local TCP port, forwards connection through wodVPN to dynamicaly chosen address, using SOCKS4/4a/5 protocol. |
Remarks The Add method will create new channel and add it to the collection of all currently defined channels for wodVPN instance. After channel is created, wodVPN will immediately try to start it. If it is started successfully,
ChannelStart event will be fired. For more information about channel types, please consult
the Type property. If you want to stop the channel, you must use
Remove method to remove it from the collection.
|