Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- log.msg("Client connected.");
- try {
- initiate();
- handshake();
- languageSelection();
- if(userLogin()) { // Correct password.
- log.debug("Menu loop starting");
- menuLoop();
- }
- closeConnection();
- log.msg("Client disconnected.");
- } catch (IOException e) {
- log.err("Connection closed prematurely.");
- } catch (Exception e) {
- if (data != null) data.send(Command.ERROR).flush();
- log.err("Connection closed due to error: " + e.getMessage());
- }
Add Comment
Please, Sign In to add comment