org.jivesoftware.smackx.jingle.nat
Class TcpUdpBridgeClient
java.lang.Object
org.jivesoftware.smackx.jingle.nat.TcpUdpBridgeClient
public class TcpUdpBridgeClient
- extends java.lang.Object
A Simple and Experimental Bridge.
It Creates a TCP Socket That Connects to another TCP Socket Listener and forwards every packets received to an UDP Listener.
And forwards every packets received in UDP Socket, to the TCP Server
|
Constructor Summary |
TcpUdpBridgeClient(java.lang.String remoteTcpHost,
java.lang.String remoteUdpHost,
int remoteTcpPort,
int remoteUdpPort)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpUdpBridgeClient
public TcpUdpBridgeClient(java.lang.String remoteTcpHost,
java.lang.String remoteUdpHost,
int remoteTcpPort,
int remoteUdpPort)
startBridge
public void startBridge()
getLocalTcpSocket
public java.net.Socket getLocalTcpSocket()
getLocalUdpSocket
public java.net.DatagramSocket getLocalUdpSocket()