Module dev.bitbite.opennetlib
Package dev.bitbite.networking
-
Interface Summary Interface Description DataProcessingLayer Represents a single data processing layer. -
Class Summary Class Description Client Represents an abstract implementation of the client-side connection.
The connection process can be initiated using the client objectsClient.connect()method, which will return true, if the connection process has been successful.
Closing the connection can be done using the client objectsClient.close()method, which will return true, if the disconnection process has been completed successfully.
Incoming data from the server will be preprocessed byClient.preprocessReceivedData(byte[])and then forwarded toClient.processReceivedData(byte[]).
Data to the server can be sent using the clientsIOHandler.
Some events trigger the notification of registeredClientListeners.ClientCloseListener ClientListener This class contains all functions which, if registered at the client object, will be called when certain events are happening.ClientManager Administrates the clients an runs in its own Thread.CommunicationHandler Manages the Communication with a client by handling its IO.CommunicationHandlerCloseListener DataPreProcessor Keeps track of allDataProcessingLayers and processes data by passing it to each layer and returning its result.DisconnectedClientDetector This Thread attempts to detect disconnected clients.DisconnectedServerDetector This Thread attempts to detect if the server has closed the connection.IOHandler This IOHandler class combines an input- and an output stream object into a single class.IOHandlerListener This class contains all functions which, if registered at the IOHandler object, will be called when certain events are happening.Server Represents an abstract implementation of the server-side connection.
The server must be started usingServer.start()for clients to be able to connect.ServerListener This class contains all functions which, if registered at the server object, will be called when certain events are happening.SSLClient SSLServer -
Enum Summary Enum Description DataPreProcessor.TransferMode The Transfer directions data can travel