Class TunnelConfiguration
java.lang.Object
com.codename1.vpn.tunnel.TunnelConfiguration
What the tunnel was started with.
Handed to VpnTunnel.onStart(TunnelConfiguration). The addresses and routes are what the
PLATFORM was told to set up before any packet arrives; a tunnel reads
them to know what it is carrying, and does not set them here -- that is
the profile's job.
-
Method Summary
Modifier and TypeMethodDescriptiongetData()Whatever the app attached when it started the tunnel, untouched.String[]The DNS servers the tunnel provides.intgetMtu()The link MTU, which bounds whatVpnTunnel.forward(PacketBuffer)can send.String[]The routes directed into the tunnel, in CIDR form.The tunnel server address.
-
Method Details
-
getServer
The tunnel server address. -
getRoutes
The routes directed into the tunnel, in CIDR form. -
getDnsServers
The DNS servers the tunnel provides. -
getMtu
public int getMtu()The link MTU, which bounds whatVpnTunnel.forward(PacketBuffer)can send. -
getData
Whatever the app attached when it started the tunnel, untouched.
The way anything the app knows reaches a tunnel without the two having to share a process. See
TunnelSetup.data.
-