Package com.echomine.net

Interface Summary
ConnectionListener listener that should be implemented to listen for any connection events
ConnectionThrottler The throttler interface gives the connection handlers a way to throttle the data transfer bandwidth.
FileHandler Interface added to support file transfer handling
FileListener Interface for listening to file transfer activities.
HandshakeableSocketHandler This interface adds an additional handshake method to the socket handler
SocketHandler Handler handles all connection details, including handshaking and data processing.
TransferRateThrottler The throttler interface gives the file transfer handlers a way to throttle the transfer rates.
 

Class Summary
AbstractFileHandler adds capability to use a FileModel.
BaseFileHandler This class simply contains methods to fire off events that other subclasses can just extend and use.
Connection Base class for all network connection related services.
ConnectionEvent contains connection event codes
ConnectionModel Contains all the data that are needed by Connector to make a connection.
FileEvent Contains event information regarding a file activity.
FileModel Contains data and information used by the Handler.
HandshakeablePerpetualSocketAcceptor Accepts connections indefinitely.
HandshakeableSocketAcceptor This acceptor works similar to SocketAcceptor except for the addition of adding handshaking capability.
HandshakeableSocketConnector This class works similar to SocketConnector to add in handshaking capability.
PerpetualSocketAcceptor Accepts connections indefinitely.
SimpleConnectionThrottler This throttler simply throttles the rate by checking to see if the rate is above the rate limit, and if it is, sleep occurs so that the rate is decreased (since rate is calculated as data transferred over a period of time).
SimpleTransferRateThrottler This transfer rate throttler simply throttles the rate by checking to see if the rate is above the rate limit, and if it is, sleep occurs so that the rate is decreased (since rate is calculated as data transferred over a period of time).
SocketAcceptor Default Acceptor class for TCP protocols.
SocketConnector Makes a connection to a remote client using TCP protocol.
StringSocketHandler The idea of a String handler is to connect either to send some of data or receive some sort of data.
StringSocketReaderHandler an easy handler that reads in a string and then disconnects immediately
StringSocketWriterHandler a handler that writes a string to the remote connection and disconnects immediately.
TimeableConnection Adds a feature that will record the amount of time since the connection is online.
 

Exception Summary
ConnectionException exception thrown when anything goes wrong with connection-related stuff.
ConnectionFailedException thrown when connection fails
ConnectionVetoException the exception exists to indicate that a connection is vetoed (or rejected)
HandshakeFailedException The exception thrown when connection handshake fails.
ServerBusyException exception thrown when the connection is through but the remote server gives us an error that the server is busy.
TransferVetoException thrown when a file transfer is vetoed by a listener to not to continue the file transfer.
 



Copyright © 2001-2005 Echomine. All Rights Reserved.