private void onLossPacket ( Packet p ) { if ( p . respHeader == null ) { p . respHeader = new ResponseHeader ( - 1 , - 1 , ErrorCode . OK ) ; } switch ( getStatus ( ) ) { case AUTH_FAILED : p . respHeader . setErr ( ErrorCode . AUTHENT_FAILED ) ; break ; case CLOSED : p . respHeader . setErr ( ErrorCode . CLIENT_CLOSED ) ; break ; default : p . respHeader . setErr ( ErrorCode . CONNECTION_LOSS ) ; } finishPacket ( p ) ; }
On the Packet lost in the DirectoryConnection .