org.jgroups.protocols
public class TUNNEL extends Protocol implements Runnable
router_host
and
router_port
. All outgoing traffic is sent via this TCP socket to the Router which
distributes it to all connected TUNNELs in this group. Incoming traffic received from Router will
simply be passed up the stack.
A TUNNEL layer can be used to penetrate a firewall, most firewalls allow creating TCP connections to the outside world, however, they do not permit outside hosts to initiate a TCP connection to a host inside the firewall. Therefore, the connection created by the inside host is reused by Router to send traffic from an outside host to a host inside the firewall.
Constructor Summary | |
---|---|
TUNNEL() |
Method Summary | |
---|---|
void | down(Event evt) Caller by the layer above this layer. |
String | getName() |
void | handleIncomingMessage(Message msg) |
void | init() |
void | run() |
boolean | setProperties(Properties props) Setup the Protocol instance acording to the configuration string |
void | start() |
void | startUpHandler()
This prevents the up-handler thread to be created, which essentially is superfluous:
messages are received from the network rather than from a layer below.
|
void | stop() |
String | toString() |