Class PALplate.mud.DemonClient
All Packages Class Hierarchy This Package Previous Next Index
Class PALplate.mud.DemonClient
java.lang.Object
|
+----PALplate.mud.DemonClient
- public class DemonClient
- extends Object
- implements Runnable
-
demonHost
-
-
demonPort
-
-
fromString
-
-
inputStream
- This makes it easier to recieve messages from the socket connection which we accepted
-
outputStream
- This makes it easier to send messages to the socket connection which we accepted
-
stdInputStream
- This makes it easier to recieve messages from the socket connection which we accepted
-
DemonClient(String[])
-
-
destroy()
- Sends a quit command and closes the sockets (which by then a broken, so you may get
an error but this way we can be doubly sure ...)
-
getParameter(String, String[])
- all search strings are assumed to start with a + or -
anything else is assumed to be an argument string.
-
main(String[])
-
-
parse_arguments(String[])
- Parameters which can be passed to this application are:
-demonHost --(Demon host machine)
-demonPort --(Demon port)
-
run()
- This function sends everything which arrives on stdn to the Demon.
demonPort
protected int demonPort
demonHost
protected String demonHost
outputStream
protected PrintStream outputStream
- This makes it easier to send messages to the socket connection which we accepted
inputStream
protected DataInputStream inputStream
- This makes it easier to recieve messages from the socket connection which we accepted
stdInputStream
protected DataInputStream stdInputStream
- This makes it easier to recieve messages from the socket connection which we accepted
fromString
protected String fromString
DemonClient
public DemonClient(String argv[])
destroy
public void destroy()
- Sends a quit command and closes the sockets (which by then a broken, so you may get
an error but this way we can be doubly sure ...)
main
public static void main(String argv[])
parse_arguments
public boolean parse_arguments(String argv[])
- Parameters which can be passed to this application are:
-demonHost --(Demon host machine)
-demonPort --(Demon port)
getParameter
public String getParameter(String searchString,
String argv[])
- all search strings are assumed to start with a + or -
anything else is assumed to be an argument string.
Returns null if searchString doesn't occur in argv
Returns "" if searchString occurs but has no arguments
Returns argString if searchString has arguments
run
public void run()
- This function sends everything which arrives on stdn to the Demon.
All Packages Class Hierarchy This Package Previous Next Index