se.sics.jipv6.tunnel
Class TSPClient

java.lang.Object
  extended by se.sics.jipv6.tunnel.TSPClient
All Implemented Interfaces:
NetworkInterface

public class TSPClient
extends Object
implements NetworkInterface


Field Summary
static boolean DEBUG
           
static int DEFAULT_PORT
           
 
Constructor Summary
TSPClient(String host)
           
TSPClient(String host, String user, String password)
           
 
Method Summary
 String getName()
           
 boolean isReady()
           
static void main(String[] args)
           
 void sendPacket(IPv6Packet packet)
           
 void setIPStack(IPStack ipStack)
           
static TSPClient startTSPTunnel(IPStack ipStack, String server, String user, String password)
           
static TSPClient startTSPTunnel(String server, String user, String password)
           
 boolean waitSetup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

TSPClient

public TSPClient(String host)
          throws SocketException,
                 UnknownHostException
Throws:
SocketException
UnknownHostException

TSPClient

public TSPClient(String host,
                 String user,
                 String password)
          throws SocketException,
                 UnknownHostException
Throws:
SocketException
UnknownHostException
Method Detail

getName

public String getName()
Specified by:
getName in interface NetworkInterface

startTSPTunnel

public static TSPClient startTSPTunnel(IPStack ipStack,
                                       String server,
                                       String user,
                                       String password)

setIPStack

public void setIPStack(IPStack ipStack)
Specified by:
setIPStack in interface NetworkInterface

isReady

public boolean isReady()
Specified by:
isReady in interface NetworkInterface

sendPacket

public void sendPacket(IPv6Packet packet)
Specified by:
sendPacket in interface NetworkInterface

startTSPTunnel

public static TSPClient startTSPTunnel(String server,
                                       String user,
                                       String password)

main

public static void main(String[] args)
                 throws UnknownHostException,
                        IOException
Throws:
UnknownHostException
IOException

waitSetup

public boolean waitSetup()