jvm.server
Class JVMServerStreamProtocol

java.lang.Object
  |
  +--jvm.server.JVMServerStreamProtocol

public class JVMServerStreamProtocol
extends java.lang.Object
implements ServerStreamProtocol

This is a implementation of the server side protocol of the JVM specification. See the manual.
It talks to clients through it's negociate method. It eventually adds a new client into the server structure and starts a new client session.
Remember that this SAME object is shared between many protocol threads. This means that all relevant data that is different in case of different connections/protocolthreads should be kept locally inside the methods like inside negociate().

Written: Radu Sion
Version: 0.29
Source: JVMServerStreamProtocol.java

Visit Smart Software 

See Also:
ServerStreamProtocol

Constructor Summary
JVMServerStreamProtocol()
          Creates a new protocol.
 
Method Summary
 void negociate(java.net.Socket ss)
          Method that should implement the protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVMServerStreamProtocol

public JVMServerStreamProtocol()
Creates a new protocol.
Method Detail

negociate

public void negociate(java.net.Socket ss)
               throws java.io.IOException
Method that should implement the protocol. The streams are open and ready. See file PROTOCOL for details. Remember that this might be called from several threads in parallel that means that all instance variables should be INSIDE this method. No parameter checkings performed.
Specified by:
negociate in interface ServerStreamProtocol
See Also:
ServerStreamProtocol.negociate(java.net.Socket)