|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.tcpforwarder.Link
public class Link
This class represents an established, forwarding connection.
| Field Summary | |
|---|---|
protected Socket |
m_listenSocket
The listen/input socket. |
protected UnidirectionalForwarderThread |
m_requestForwarderThread
Is the request forwarder thread (listenSocket -> targetSocket). |
protected UnidirectionalForwarderThread |
m_responseForwarderThread
Is the response forwarder thread (targetSocket -> listenSocket). |
protected Socket |
m_targetSocket
The target/output socket. |
protected TcpForwarder |
m_tcpForwarder
The control interface keeping track of this. |
| Constructor Summary | |
|---|---|
Link(TcpForwarder tcpForwarder,
Socket listenSocket,
Socket targetSocket)
Establishes a forwarding link between listenSocket and
targetSocket. |
|
| Method Summary | |
|---|---|
protected void |
cut()
Immediately aborts this. |
protected void |
done()
Called by workers to tell this that they are done. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final TcpForwarder m_tcpForwarder
this.
protected final Socket m_listenSocket
protected final Socket m_targetSocket
protected final UnidirectionalForwarderThread m_requestForwarderThread
protected final UnidirectionalForwarderThread m_responseForwarderThread
| Constructor Detail |
|---|
public Link(TcpForwarder tcpForwarder,
Socket listenSocket,
Socket targetSocket)
listenSocket and
targetSocket.
tcpForwarder - The control interface keeping track of this.listenSocket - Is the listen socket.targetSocket - Is the target socket.| Method Detail |
|---|
protected void cut()
this.
protected void done()
this that they are done.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||