se.sics.jipv6.core
Class TCPConnection

java.lang.Object
  extended by se.sics.jipv6.core.TCPConnection

public class TCPConnection
extends Object


Field Summary
static int CLOSE_WAIT
           
static int CLOSED
           
static int CLOSING
           
static int ESTABLISHED
           
static int FIN_WAIT_1
           
static int FIN_WAIT_2
           
static int LAST_ACK
           
static int LISTEN
           
static int SYN_RECEIVED
           
static int SYN_SENT
           
static int TIME_WAIT
           
static long TIME_WAIT_MILLIS
           
 
Method Summary
 void close()
           
 TCPPacket createPacket()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 boolean matches(IPv6Packet packet, TCPPacket tcpPacket)
           
 void newConnection(TCPConnection c)
           
 void send(byte[] bytes)
           
 void send(TCPPacket tcpPacket)
           
 void setTCPListener(TCPListener listener)
           
 void setTimeout(int tms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSED

public static final int CLOSED
See Also:
Constant Field Values

LISTEN

public static final int LISTEN
See Also:
Constant Field Values

SYN_SENT

public static final int SYN_SENT
See Also:
Constant Field Values

SYN_RECEIVED

public static final int SYN_RECEIVED
See Also:
Constant Field Values

ESTABLISHED

public static final int ESTABLISHED
See Also:
Constant Field Values

CLOSE_WAIT

public static final int CLOSE_WAIT
See Also:
Constant Field Values

LAST_ACK

public static final int LAST_ACK
See Also:
Constant Field Values

FIN_WAIT_1

public static final int FIN_WAIT_1
See Also:
Constant Field Values

FIN_WAIT_2

public static final int FIN_WAIT_2
See Also:
Constant Field Values

CLOSING

public static final int CLOSING
See Also:
Constant Field Values

TIME_WAIT

public static final int TIME_WAIT
See Also:
Constant Field Values

TIME_WAIT_MILLIS

public static final long TIME_WAIT_MILLIS
See Also:
Constant Field Values
Method Detail

getInputStream

public InputStream getInputStream()

getOutputStream

public OutputStream getOutputStream()

setTCPListener

public void setTCPListener(TCPListener listener)

newConnection

public void newConnection(TCPConnection c)

matches

public boolean matches(IPv6Packet packet,
                       TCPPacket tcpPacket)

send

public void send(TCPPacket tcpPacket)
          throws IOException
Throws:
IOException

send

public void send(byte[] bytes)
          throws IOException
Throws:
IOException

close

public void close()

createPacket

public TCPPacket createPacket()

setTimeout

public void setTimeout(int tms)