Package org.pf.net

Network Utility Classes
An experimental implementation of a convenience layer for a simple client/server socket-based text protocol communication.

See:
          Description

Interface Summary
RequestProcessor Generic interface for processors of incoming requests
TextRequestProcessor The interface a class must implement to be able to process text requests from a TextSocketConnection.
 

Class Summary
BaseTextRequestProcessor The abstract implementation of a text request processor that leaves only the processing of a single request to subclasses.
BinaryRequestServer Abstract superclass for servers that handle binary requests
BinarySocketConnection Receives binary data from a socket and provides it to a request processor by the getData() method
ConnectionPool This class provides a mechanism to reuse established connections rather than creating new ones every time.
PortListener Encapsulates the functionality to open a port (i.e. server socket) and start listening on it.
RequestServer A generic server that listens to a port and starts processing threads on the incoming requests.
SocketConnection Generic superclass for connections on a specific socket (port).
TextRequestServer A request server that is specialized to accept requests in text form (e.g.
TextSocketConnection A connection based on a opened socket.
 

Package org.pf.net Description

Network Utility Classes


An experimental implementation of a convenience layer for a simple client/server socket-based text protocol communication.