Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.framework.server
Class AdminConsoleConnection  view AdminConsoleConnection download AdminConsoleConnection.java

java.lang.Object
  extended byorg.metacosm.framework.server.Connection
      extended byorg.metacosm.framework.server.AdminConsoleConnection
All Implemented Interfaces:
java.lang.Runnable

public class AdminConsoleConnection
extends Connection

AdminConsoleConnection provides connection to the game via the admin console protocol.


Field Summary
private  boolean forever
           
private  java.io.BufferedReader input
           
private static int maxTimeoutEx
           
private  int nbTimeoutEx
           
private  java.io.PrintStream output
           
protected  java.net.Socket socket
          The socket is used to connect the client and the server.
 
Constructor Summary
(package private) AdminConsoleConnection(java.net.Socket s)
          If the connection is established, the game will keep the socket.
 
Method Summary
 void close()
           
 void pleaseStop()
           
 void run()
          Provides the connection dialog for Admin Console protocol.
 void sendAdminMessage(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

private java.io.PrintStream output

input

private java.io.BufferedReader input

nbTimeoutEx

private int nbTimeoutEx

forever

private boolean forever

maxTimeoutEx

private static int maxTimeoutEx

socket

protected java.net.Socket socket
The socket is used to connect the client and the server.

Constructor Detail

AdminConsoleConnection

AdminConsoleConnection(java.net.Socket s)
If the connection is established, the game will keep the socket.

Method Detail

close

public void close()
           throws java.io.IOException

pleaseStop

public void pleaseStop()

run

public void run()
Provides the connection dialog for Admin Console protocol.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Connection

sendAdminMessage

public void sendAdminMessage(java.lang.String msg)