Class skydata::centralized::CentralizedMTP::ClientHandler¶
ClassList > skydata > centralized > CentralizedMTP > ClientHandler
Inherits the following classes: Runnable
Public Functions¶
Type | Name |
---|---|
ClientHandler (Socket socket) |
|
void | run () |
Detailed Description¶
Manage the communication with a single client (a Harbour)
Public Functions Documentation¶
function ClientHandler¶
inline skydata::centralized::CentralizedMTP::ClientHandler::ClientHandler (
Socket socket
)
Initialize the connection
Parameters:
socket
function run¶
inline void skydata::centralized::CentralizedMTP::ClientHandler::run ()
Manage the communication.
There are two messages : * ADD : the client send the adress and the mtp of a harbour and the server does not answer * GET : the client ask for the list of the Harbour and the server answer with all known adresses
The documentation for this class was generated from the following file /home/maxime/Desktop/skd_proto_v2/skd/src/main/java/skydata/centralized/CentralizedMTP.java