FreeClient
Class ClientProtocol

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

public class ClientProtocol
extends java.lang.Object

ClientProtocol receives Strings of data from TCPClient and implements the logic to process these strings and formulate the appropriate replies. The source code is extremely readable and best explains the full functionality.

Version:
0.7 12 April 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.