|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.interloper.StyxInterloper
public class StyxInterloper
A StyxInterloper listens for Styx messages, then forwards them directly to another Styx server. The replies from the other Styx server are sent back to the client. This allows the Styx messages sent between systems to be investigated.
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress |
destSockAddr
|
protected int |
port
|
protected StyxServer |
styxServer
|
| Constructor Summary | |
|---|---|
StyxInterloper(int port,
java.lang.String serverHost,
int serverPort)
Creates a new StyxInterloper. |
|
| Method Summary | |
|---|---|
protected static void |
checkArgs(java.lang.String[] args)
Checks the command-line arguments, throwing an Exception if there is a problem |
static void |
main(java.lang.String[] args)
|
void |
rMessageSent(StyxMessage message)
Called when an Rmessage has been sent back to the client. |
void |
tMessageReceived(StyxMessage message)
Called when a Tmessage arrives from a client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int port
protected java.net.InetSocketAddress destSockAddr
protected StyxServer styxServer
| Constructor Detail |
|---|
public StyxInterloper(int port,
java.lang.String serverHost,
int serverPort)
throws java.io.IOException
port - The port on which this server will listenserverHost - The host of the destination to which this server will connectserverPort - The port of the destination to which this server will connect
java.io.IOException - if there was an error starting the Styx server| Method Detail |
|---|
public void tMessageReceived(StyxMessage message)
tMessageReceived in interface InterloperListenerpublic void rMessageSent(StyxMessage message)
rMessageSent in interface InterloperListenerpublic static void main(java.lang.String[] args)
protected static void checkArgs(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||