org.jivesoftware.smackx.jingle.nat
Class TcpUdpBridgeServer

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.nat.TcpUdpBridgeServer

public class TcpUdpBridgeServer
extends java.lang.Object

A Simple and Experimental Bridge. It Creates a TCP Socket Listeners for Connections and forwards every packets received to an UDP Listener. And forwards every packets received in UDP Socket, to the TCP Client


Constructor Summary
TcpUdpBridgeServer(java.lang.String remoteTcpHost, java.lang.String remoteUdpHost, int remoteTcpPort, int remoteUdpPort)
           
 
Method Summary
 java.net.Socket getLocalTcpSocket()
           
 java.net.DatagramSocket getLocalUdpSocket()
           
 void startBridge()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpUdpBridgeServer

public TcpUdpBridgeServer(java.lang.String remoteTcpHost,
                          java.lang.String remoteUdpHost,
                          int remoteTcpPort,
                          int remoteUdpPort)
Method Detail

startBridge

public void startBridge()

getLocalTcpSocket

public java.net.Socket getLocalTcpSocket()

getLocalUdpSocket

public java.net.DatagramSocket getLocalUdpSocket()