Class TcpUdpBridgeClient
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.nat.TcpUdpBridgeClient
-
public class TcpUdpBridgeClient extends 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
Constructors Constructor Description TcpUdpBridgeClient(String remoteTcpHost, String remoteUdpHost, int remoteTcpPort, int remoteUdpPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
getLocalTcpSocket()
DatagramSocket
getLocalUdpSocket()
void
startBridge()
-
-
-
Constructor Detail
-
TcpUdpBridgeClient
public TcpUdpBridgeClient(String remoteTcpHost, String remoteUdpHost, int remoteTcpPort, int remoteUdpPort)
-
-
Method Detail
-
startBridge
public void startBridge()
-
getLocalTcpSocket
public Socket getLocalTcpSocket()
-
getLocalUdpSocket
public DatagramSocket getLocalUdpSocket()
-
-