net.i2p.i2ptunnel.udp
Class UDPSink

java.lang.Object
  extended by net.i2p.i2ptunnel.udp.UDPSink
All Implemented Interfaces:
Sink

public class UDPSink
extends java.lang.Object
implements Sink

Author:
welterde

Field Summary
protected  java.net.InetAddress remoteHost
           
protected  int remotePort
           
protected  java.net.DatagramSocket sock
           
 
Constructor Summary
UDPSink(java.net.InetAddress host, int port)
           
 
Method Summary
 int getPort()
           
 java.net.DatagramSocket getSocket()
          to pass to UDPSource constructor
 void send(Destination src, byte[] data)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sock

protected java.net.DatagramSocket sock

remoteHost

protected java.net.InetAddress remoteHost

remotePort

protected int remotePort
Constructor Detail

UDPSink

public UDPSink(java.net.InetAddress host,
               int port)
Method Detail

send

public void send(Destination src,
                 byte[] data)
Specified by:
send in interface Sink

getPort

public int getPort()

getSocket

public java.net.DatagramSocket getSocket()
to pass to UDPSource constructor


stop

public void stop()