Free
Class ClientProtocol

java.lang.Object
  |
  +--Free.ClientProtocol

public class ClientProtocol
extends java.lang.Object

Processes data from TCPClient to formulate the correct resonses. The source code is extremely readable and provides the best explanation of its function.

Version:
0.91 7 February 2001
Author:
Jason Kitcat

Constructor Summary
ClientProtocol()
           
 
Method Summary
protected static java.lang.String process(java.lang.String inputData)
          process analyses packets and responds appropriately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientProtocol

public ClientProtocol()
Method Detail

process

protected static java.lang.String process(java.lang.String inputData)
                                   throws java.lang.Exception
process analyses packets and responds appropriately
Parameters:
inputData - Contains the contents of a received packet
Throws:
Exception, - all errors are handled by TCPClient which has the ability to gracefully close the connection.