ERServer
Class ERServerProtocol

java.lang.Object
  |
  +--ERServer.ERServerProtocol

public class ERServerProtocol
extends java.lang.Object

Processes the Strings passed to it by TCPServer but throws all errors back up to TCPServer which can better handle problems by elegantly closing connections. The source code is very readable and best explains the logic.

Version:
1.3 8 September 2001
Author:
Jason Kitcat

Constructor Summary
ERServerProtocol()
           
 
Method Summary
protected static java.lang.String process(java.lang.String inputData, java.lang.String session_key)
          process analyses Strings sent from TCPServer and decides whether the data is in fact valid packets.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERServerProtocol

public ERServerProtocol()
Method Detail

process

protected static java.lang.String process(java.lang.String inputData,
                                          java.lang.String session_key)
                                   throws java.lang.Exception
process analyses Strings sent from TCPServer and decides whether the data is in fact valid packets. If so then the appropriate replies are formulated and returned to TCPServer for sending to the client.
Parameters:
inputData - Contains the contents of a received packet
session_key - The session key for encryption