Public Member Functions | |
void | exceptionCaught (IoSession session, Throwable arg1) |
void | sessionIdle (IoSession session, IdleStatus arg1) throws Exception |
void | sessionClosed (IoSession session) throws Exception |
void | messageReceived (IoSession session, Object arg1) throws Exception |
void | messageSent (IoSession session, Object arg1) throws Exception |
Protected Member Functions | |
void | messageRun (IoSession session, LSDMsgAnswear lma) |
void | messageGetList (@SuppressWarnings("unused") IoSession session,@SuppressWarnings("unused") LSDClientSession ls,@SuppressWarnings("unused") byte bytes[]) |
void | messageGetListMD5 (@SuppressWarnings("unused") IoSession session,@SuppressWarnings("unused") LSDClientSession ls,@SuppressWarnings("unused") byte bytes[]) |
void | messageGetAExist (@SuppressWarnings("unused") IoSession session, LSDClientSession ls, byte bytes[]) |
void | messageGetAExistMD5 (@SuppressWarnings("unused") IoSession session, LSDClientSession ls, byte bytes[]) |
boolean | messageClear (IoSession session, Object arg1) |
void | sessionFinished (IoSession session, byte status) |
Private Member Functions | |
void | messageSize (IoSession session, LSDMsgAnswear lma) |
void | messageCopy (IoSession session, LSDMsgAnswear lma) |
void | messageList (IoSession session, LSDMsgAnswear lma) |
void | messageListMD5 (IoSession session, LSDMsgAnswear lma) |
void | messageAExist (IoSession session, LSDMsgAnswear lma) |
void | messageAExistMD5 (IoSession session, LSDMsgAnswear lma) |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageRun | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [protected, virtual] |
When a message is received, call the message function according to the kind of message.
Implements openlsd.network.client.common.LSDClientCommonSessionHandler.
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageSize | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the size request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageCopy | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the copy request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageList | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the list request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageGetList | ( | @SuppressWarnings("unused") IoSession | session, | |
@SuppressWarnings("unused") LSDClientSession | ls, | |||
@SuppressWarnings("unused") byte | bytes[] | |||
) | [protected] |
This function by default do nothing with the block as it cannot be stored in an array (capacity limited).
This function must be extended if the application needs to make something by block (example check DB).
session | ||
ls | ||
bytes |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageListMD5 | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the list with MD5 request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageGetListMD5 | ( | @SuppressWarnings("unused") IoSession | session, | |
@SuppressWarnings("unused") LSDClientSession | ls, | |||
@SuppressWarnings("unused") byte | bytes[] | |||
) | [protected] |
This function by default do nothing with the block as it cannot be stored in an array (capacity limited).
This function must be extended if the application needs to make something by block (example check DB).
session | ||
ls | ||
bytes |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageAExist | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the list exist request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageGetAExist | ( | @SuppressWarnings("unused") IoSession | session, | |
LSDClientSession | ls, | |||
byte | bytes[] | |||
) | [protected] |
This function add in the queue if one triplet is in KO. Only false positive are received.
session | ||
ls | ||
bytes |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageAExistMD5 | ( | IoSession | session, | |
LSDMsgAnswear | lma | |||
) | [private] |
This function is private and finish the list exist request.
session | ||
lma |
void openlsd.network.client.info.LSDClientInfoSessionHandler.messageGetAExistMD5 | ( | @SuppressWarnings("unused") IoSession | session, | |
LSDClientSession | ls, | |||
byte | bytes[] | |||
) | [protected] |
This function add in the queue if one triplet + md5 is in KO. Only false positive are received.
session | ||
ls | ||
bytes |
boolean openlsd.network.client.info.LSDClientInfoSessionHandler.messageClear | ( | IoSession | session, | |
Object | arg1 | |||
) | [protected, virtual] |
Clear the message sent from memory.
Implements openlsd.network.client.common.LSDClientCommonSessionHandler.
void openlsd.network.client.common.LSDClientCommonSessionHandler.exceptionCaught | ( | IoSession | session, | |
Throwable | arg1 | |||
) | [inherited] |
In case of exception, if the session is present, free the lock such that the main call is released.
void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionIdle | ( | IoSession | session, | |
IdleStatus | arg1 | |||
) | throws Exception [inherited] |
In case of idle, if the session is present, free the lock such that the main call is released.
void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionClosed | ( | IoSession | session | ) | throws Exception [inherited] |
When the session is closed, free the session associated.
void openlsd.network.client.common.LSDClientCommonSessionHandler.messageReceived | ( | IoSession | session, | |
Object | arg1 | |||
) | throws Exception [inherited] |
When a message is received, call the messageRun to run a specific task according to the kind of message.
void openlsd.network.client.common.LSDClientCommonSessionHandler.messageSent | ( | IoSession | session, | |
Object | arg1 | |||
) | throws Exception [inherited] |
Clear the message sent from memory. Call the function messageClear to extend to adapt to the kind of message to clear.
WARNING : one access to LSDClient from network.client.example to remove when ready to production.
session | ||
arg1 |
void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionFinished | ( | IoSession | session, | |
byte | status | |||
) | [protected, inherited] |
Finish the current session by simply assign the status and releasing the possible lock.
session | ||
status |