|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.net.ServerDebugPlugin
A callback for the net Server class. Implements the interface for ServerCallback.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Dec 11 1997, JH Created class - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
ServerDebugPlugin()
|
Method Summary | |
void |
onCloseConnection()
Called when the connection is closed. |
void |
onFinish()
Called once, when the server is closed completely. |
void |
onOpenConnection(InetAddress addr,
InputStream istream,
OutputStream ostream)
Called when the server is waiting for a connection. |
void |
onReceiveData(InputStream istream,
OutputStream ostream)
Called when there is new data to be read. |
void |
onStart()
Called once, when the server is started. |
void |
onWaitForConnection()
Called when the server is waiting for a connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerDebugPlugin()
Method Detail |
public void onStart()
onStart
in interface ServerPlugin
public void onWaitForConnection()
onWaitForConnection
in interface ServerPlugin
public void onOpenConnection(InetAddress addr, InputStream istream, OutputStream ostream)
onOpenConnection
in interface ServerPlugin
edu.berkeley.guir.lib.net.ServerPlugin
addr
- is the address of the client connecting to this server.istream
- is the InputStream of the Socket, the input the client
sends to the server.ostream
- is the OutputStream of the Socket, the output the server
sends to the client.public void onReceiveData(InputStream istream, OutputStream ostream) throws IOException
onReceiveData
in interface ServerPlugin
edu.berkeley.guir.lib.net.ServerPlugin
istream
- is the InputStream of the Socket, the input the client
sends to the server.ostream
- is the OutputStream of the Socket, the output the server
sends to the client.public void onCloseConnection()
onCloseConnection
in interface ServerPlugin
public void onFinish()
onFinish
in interface ServerPlugin
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |