diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dd0e092..76ed9c9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,23 +5,25 @@ - - + + + + + + + + - - - - - - + + - + @@ -34,7 +36,7 @@ - + com.texttwist.client.* @@ -44,24 +46,11 @@ - - - - - - - - - - - - - - - + + @@ -69,86 +58,11 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -156,6 +70,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -167,36 +164,36 @@ - System - System. - System.o - System.out - System.out.p - System.out.println - System.out.printl - System.out.print - 0 - 0+" - 0+ - Log - Logger. - Logger.wri - Logger.writ - Logger.write - J - JOINE - JOINED - S - START - START THE + Ready to rec + Ready to rece + Ready to receiv + Rec + Receive + ReceiveWo + ReceiveWor + ReceiveWord + Dict + words + ReceiveWords + G + GAME_ST + GAME_STA + 4 + 4000 + 2 + 226 + s + setM + setMu + setMult + setMulti + WaitForS + WaitForSco + WaitForScor W - Word - Word! - T - TTGA - TTGAM - TTGAME - getWo + WaitFor + WaitForP + WaitForPla @@ -210,22 +207,13 @@ @@ -309,6 +306,7 @@ + @@ -391,6 +389,7 @@ + @@ -535,6 +534,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - @@ -695,12 +742,8 @@ - - - - - - + + @@ -710,8 +753,12 @@ - - + + + + + + @@ -1179,12 +1226,14 @@ - + + + - @@ -1193,28 +1242,28 @@ - - - - - + + + + + - + - - - - - - - - + + + + + + + + - - + + @@ -1230,7 +1279,7 @@ - @@ -1239,92 +1288,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1351,19 +1318,10 @@ - - - - - - - - - @@ -1371,7 +1329,6 @@ - @@ -1379,28 +1336,138 @@ - - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1412,236 +1479,219 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + - - + + - + + - + - - - - - + + + + + + + + + + + diff --git a/Client/src/com/texttwist/client/pages/Game.java b/Client/src/com/texttwist/client/pages/Game.java index 998cbba..8b2e258 100644 --- a/Client/src/com/texttwist/client/pages/Game.java +++ b/Client/src/com/texttwist/client/pages/Game.java @@ -32,12 +32,6 @@ public class Game extends Page { return new Point(0,0); } - public Thread startGame(){ - Thread t = new Thread(new StartGame(this)); - t.start(); - return t; - } - public void showLetters(){ for(int i = 0; i< this.gameController.letters.size(); i++){ @@ -57,7 +51,7 @@ public class Game extends Page { gameController = new GameController(); letterSpawningPoint = setLetterSpawningPoint(); this.gameController.waitForPlayers(); - startGame(); + this.gameController.startGame(this); window.setVisible(true); } @@ -87,12 +81,6 @@ public class Game extends Page { return l; } - private Callable sendWords(String word){ - System.out.println("SENDDDD" + word); - return null; - } - - @Override public void createUIComponents() throws IOException { addLogo(root); @@ -118,7 +106,7 @@ public class Game extends Page { new Callable() { @Override public Object call() throws Exception { - return new com.texttwist.client.pages.Menu(Page.window); + return null; } }); @@ -126,7 +114,13 @@ public class Game extends Page { new Font(Palette.inputBox_font.getFontName(), Font.BOLD, 40), null, "00:00", - 120); + new Callable() { + @Override + public Object call() throws Exception { + gameController.sendWords(words); + return null; + }}, + 15); } } diff --git a/Client/src/com/texttwist/client/pages/GameController.java b/Client/src/com/texttwist/client/pages/GameController.java index 1280140..dc6a107 100644 --- a/Client/src/com/texttwist/client/pages/GameController.java +++ b/Client/src/com/texttwist/client/pages/GameController.java @@ -1,12 +1,21 @@ package com.texttwist.client.pages; import com.texttwist.client.App; +import com.texttwist.client.tasks.StartGame; +import com.texttwist.client.tasks.WaitForPlayers; +import com.texttwist.client.tasks.WaitForScore; import com.texttwist.client.ui.TTDialog; import com.texttwist.client.ui.TTLetter; +import constants.Config; +import models.Message; import javax.swing.*; import java.awt.*; +import java.io.BufferedReader; import java.io.IOException; +import java.io.InputStreamReader; +import java.net.*; +import java.util.concurrent.Callable; import java.util.concurrent.ThreadLocalRandom; /** @@ -25,9 +34,52 @@ public class GameController { return App.matchService.waitForPlayers(); } + + public void waitForScore(){ + SwingWorker worker = new WaitForScore(); + worker.execute(); + + } + public boolean addWordToWordsList(String word) { words.addElement(word); return true; } + public Callable sendWords(DefaultListModel words){ + System.out.println("SENDDDD" + words); + + DatagramSocket clientSocket = null; + try { + clientSocket = new DatagramSocket(); + + InetAddress IPAddress = InetAddress.getByName(Config.WordsReceiverServerURI); + byte[] sendData = new byte[1024]; + byte[] receiveData = new byte[1024]; + Message msg = new Message("WORDS",App.sessionService.account.userName,"",words); + String sentence = msg.toString(); + sendData = sentence.getBytes(); + DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, IPAddress, Config.WordsReceiverServerPort); + clientSocket.send(sendPacket); + clientSocket.close(); + waitForScore(); + + } catch (SocketException e) { + e.printStackTrace(); + } catch (UnknownHostException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + return null; + + } + + public Thread startGame(Game game){ + Thread t = new Thread(new StartGame(game)); + t.start(); + return t; + } + + } diff --git a/Client/src/com/texttwist/client/pages/MatchService.java b/Client/src/com/texttwist/client/pages/MatchService.java index 14fa364..6650443 100644 --- a/Client/src/com/texttwist/client/pages/MatchService.java +++ b/Client/src/com/texttwist/client/pages/MatchService.java @@ -19,9 +19,9 @@ import java.util.concurrent.*; */ public class MatchService { + public Integer multicastId = 0 ; public DefaultListModel pendingList = new DefaultListModel(); ByteBuffer buffer = ByteBuffer.allocate(1024); - public DefaultListModel words = new DefaultListModel(); SocketChannel clientSocket = null; @@ -45,6 +45,7 @@ public class MatchService { } catch (IOException e) { e.printStackTrace(); } + //Visualizza popup new TTDialog("success", "New invitation from: " + userName + "!", new Callable() { @@ -102,6 +103,10 @@ public class MatchService { return null; } + public void setMulticastId(Integer multicastId){ + this.multicastId = multicastId; + } + public void addToPendingList(String username) throws IOException { pendingList.addElement(username); } diff --git a/Client/src/com/texttwist/client/pages/Page.java b/Client/src/com/texttwist/client/pages/Page.java index f849089..3220428 100644 --- a/Client/src/com/texttwist/client/pages/Page.java +++ b/Client/src/com/texttwist/client/pages/Page.java @@ -93,7 +93,7 @@ public class Page { parent); } - public Timer addTimer(TTContainer parent, Font font, Color fontColor, String caption, Integer value) { + public Timer addTimer(TTContainer parent, Font font, Color fontColor, String caption, Callable timerEndHandler, Integer value) { TTLabel lblTimer = new TTLabel( new Point(0, 0), new Dimension(150, 50), @@ -108,6 +108,11 @@ public class Page { public void actionPerformed(ActionEvent e) { if (count <= 0) { lblTimer.setText("00:00"); + try { + timerEndHandler.call(); + } catch (Exception e1) { + e1.printStackTrace(); + } ((Timer)e.getSource()).stop(); } else { int minutes = count / 60; diff --git a/Client/src/com/texttwist/client/tasks/StartGame.java b/Client/src/com/texttwist/client/tasks/StartGame.java index 0281ed4..ee4155a 100644 --- a/Client/src/com/texttwist/client/tasks/StartGame.java +++ b/Client/src/com/texttwist/client/tasks/StartGame.java @@ -3,9 +3,12 @@ package com.texttwist.client.tasks; import com.texttwist.client.App; import com.texttwist.client.pages.Game; import com.texttwist.client.pages.GameController; +import com.texttwist.client.pages.Page; +import com.texttwist.client.ui.TTDialog; import oracle.jrockit.jfr.JFR; import javax.swing.*; +import java.util.concurrent.Callable; /** * Created by loke on 25/06/2017. @@ -25,11 +28,16 @@ public class StartGame implements Runnable { while(!(this.game.gameController.letters.size() > 0)) { this.game.gameController.letters = App.matchService.words; } - game.showLetters(); - - if(this.game.gameController.letters.size()>0){ - this.game.timer.start(); - } + //Mostra pannello di conferma che le lettere sono tutte arrivate + new TTDialog("success", "Game is ready. Press OK to start!", + new Callable() { + @Override + public Object call() throws Exception { + game.showLetters(); + game.timer.start(); + return null; + } + }, null); } } diff --git a/Client/src/com/texttwist/client/tasks/WaitForPlayers.java b/Client/src/com/texttwist/client/tasks/WaitForPlayers.java index 590209d..1a1be0c 100644 --- a/Client/src/com/texttwist/client/tasks/WaitForPlayers.java +++ b/Client/src/com/texttwist/client/tasks/WaitForPlayers.java @@ -43,7 +43,7 @@ public class WaitForPlayers extends SwingWorker,Default buffer.clear(); Message msg = Message.toMessage(line); - if (msg.message.equals("TIMEOUT")) { + if (msg.message.equals("JOIN_TIMEOUT")) { socketChannel.close(); loading.dispose(); new TTDialog("alert", "TIMEOUT!", @@ -59,7 +59,15 @@ public class WaitForPlayers extends SwingWorker,Default if (msg.message.equals("GAME_STARTED")) { loading.dispose(); + DefaultListModel data = msg.data; + + System.out.println("HERE"); + System.out.println(msg.data); + Integer multicastId = Integer.valueOf(data.remove(data.size()-2)); + System.out.println(multicastId); + App.matchService.setMulticastId(multicastId); words = msg.data; + //socketChannel.close(); App.matchService.setWords(words); return words; diff --git a/Client/src/com/texttwist/client/tasks/WaitForScore.java b/Client/src/com/texttwist/client/tasks/WaitForScore.java new file mode 100644 index 0000000..f4d4f00 --- /dev/null +++ b/Client/src/com/texttwist/client/tasks/WaitForScore.java @@ -0,0 +1,46 @@ +package com.texttwist.client.tasks; + +import com.texttwist.client.App; +import constants.Config; + +import javax.swing.*; +import java.io.IOException; +import java.net.DatagramPacket; +import java.net.InetAddress; +import java.net.MulticastSocket; +import java.net.UnknownHostException; + +/** + * Created by loke on 27/06/2017. + */ +public class WaitForScore extends SwingWorker { + + + @Override + public Void doInBackground() { + InetAddress group = null; + try { + + MulticastSocket ms = new MulticastSocket(App.matchService.multicastId); + InetAddress ia = InetAddress.getByName(Config.ScoreMulticastServerURI); + ms.joinGroup(ia); + System.out.println("Join multicast group"); + + byte[] buf = new byte[1024]; + DatagramPacket recv = new DatagramPacket(buf, buf.length); + ms.receive(recv); + String s = new String(recv.getData()); + System.out.println(s); + } catch (UnknownHostException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + return null; + } + + public void done(){ + System.out.println("Done"); + } + +} diff --git a/Client/src/com/texttwist/client/ui/TTGameBox.java b/Client/src/com/texttwist/client/ui/TTGameBox.java index 8c87fe0..e020e5b 100644 --- a/Client/src/com/texttwist/client/ui/TTGameBox.java +++ b/Client/src/com/texttwist/client/ui/TTGameBox.java @@ -12,7 +12,6 @@ import java.util.concurrent.Callable; */ public class TTGameBox extends TTInputField{ - private DefaultListModel words = new DefaultListModel(); public TTGameBox(Point position, Dimension dimension, String placeholer, @@ -33,8 +32,8 @@ public class TTGameBox extends TTInputField{ if(e.getKeyCode() == 10){ try { System.out.println(getText()); - setText(""); listModel.addElement(getText()); + setText(""); } catch (Exception e1) { e1.printStackTrace(); } diff --git a/Commons/src/constants/Config.java b/Commons/src/constants/Config.java index fe4459f..a891639 100644 --- a/Commons/src/constants/Config.java +++ b/Commons/src/constants/Config.java @@ -11,6 +11,12 @@ public class Config { public static String GameServerURI = "localhost"; public static Integer GameServerPort = 10000; + + public static String WordsReceiverServerURI = "localhost"; + public static Integer WordsReceiverServerPort = 10001; + + public static String ScoreMulticastServerURI = "226.226.226.226"; + public static String NotificationServerURI = "localhost"; public static Integer NotificationServerPort = 20000; public static Integer NotificationServerStubPort = 5000; diff --git a/Server/src/com/texttwist/server/components/ThreadProxy.java b/Server/src/com/texttwist/server/components/ThreadProxy.java index c4de15b..e67f607 100644 --- a/Server/src/com/texttwist/server/components/ThreadProxy.java +++ b/Server/src/com/texttwist/server/components/ThreadProxy.java @@ -1,11 +1,16 @@ package com.texttwist.server.components; +import com.texttwist.client.App; import com.texttwist.server.models.Match; import com.texttwist.server.tasks.*; +import constants.Config; import models.Message; import javax.swing.*; import java.io.IOException; +import java.net.DatagramPacket; +import java.net.InetAddress; +import java.net.MulticastSocket; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import java.util.concurrent.*; @@ -61,36 +66,21 @@ public class ThreadProxy implements Callable { if(!joinMatchRes){ //NON FARE NULLA, ASPETTA GLI ALTRI Message message = new Message("INVITES_ALL_SENDED", "", "", new DefaultListModel()); - byteMessage = new String(message.toString()).getBytes(); + byteMessage = message.toString().getBytes(); buffer = ByteBuffer.wrap(byteMessage); socketChannel.write(buffer); - Future matchTimeout = threadPool.submit(new MatchTimeout(match)); - Boolean matchTimeoutRes = matchTimeout.get(); - if(matchTimeoutRes){ - - } else { - - //TODO If game is started not send this message - if(!match.isStarted()) { - for (int i = 0; i < match.playersSocket.size(); i++) { - socketChannel = match.playersSocket.get(i).getValue(); - if (socketChannel != null) { - buffer.clear(); - message = new Message("TIMEOUT", "", "", new DefaultListModel<>()); - byteMessage = new String(message.toString()).getBytes(); - buffer = ByteBuffer.wrap(byteMessage); - socketChannel.write(buffer); - - //clientSocket.close(); - } - - } + Future joinTimeout = threadPool.submit(new JoinTimeout(match)); + Boolean joinTimeoutRes = joinTimeout.get(); + if(!joinTimeoutRes){ + Future sendMessageJoinTimeout = threadPool.submit( + new SendMessageToAllPlayers(match, new Message("JOIN_TIMEOUT", "", "", new DefaultListModel<>()), socketChannel)); + Boolean sendMessageJoinTimeoutRes = sendMessageJoinTimeout.get(); + if(!sendMessageJoinTimeoutRes){ + return sendMessageJoinTimeoutRes; } } - - return matchTimeoutRes; } } else { @@ -124,25 +114,23 @@ public class ThreadProxy implements Callable { try { Boolean joinMatchRes = joinMatch.get(); if(joinMatchRes){ - System.out.print("START THE FUCKING GAME!!!!"); - - //Find the game, send broadcast communication -// buffer.flip(); + System.out.print("START THE GAME!!!!"); Match match = Match.findMatch(request.data.get(0)); - Future> generateWords = threadPool.submit(new GenerateWords()); + Future> generateWords = threadPool.submit(new GenerateLetters()); match.setLetters(generateWords.get()); + match.letters.addElement(String.valueOf(match.multicastId)); for (int i =0; i< match.playersSocket.size(); i++) { System.out.println("INVIO"); socketChannel = match.playersSocket.get(i).getValue(); - if(socketChannel!=null) { + if(socketChannel != null) { buffer.clear(); Message message = new Message("GAME_STARTED", "", "", match.letters); match.startGame(); - byteMessage = new String(message.toString()).getBytes(); + byteMessage = message.toString().getBytes(); buffer = ByteBuffer.wrap(byteMessage); try { @@ -154,6 +142,29 @@ public class ThreadProxy implements Callable { } } + + //Start receive words: tempo masimo 5 minuti per completare l'invio delle lettere. + Future receiveWords = threadPool.submit(new ReceiveWords(match)); + Boolean receiveWordsRes = receiveWords.get(); + if(!receiveWordsRes){ + match.setUndefinedScorePlayersToZero(); + System.out.println("ZERO PUNTI a chi non ha ancora inviato le lettere, TIMER SCADUTO"); + } else { + System.out.println("TUTTI I GIOCATORI HANNO CONSEGNATO IN TEMPO"); + } + System.out.println(match.playersScore); + + Message msg = new Message("FINALSCORE","SERVER","", match.getMatchPlayersScoreAsStringList()); + + MulticastSocket s = new MulticastSocket(4000); + InetAddress ia = InetAddress.getByName(Config.ScoreMulticastServerURI); + DatagramPacket hi = new DatagramPacket(msg.toString().getBytes(), msg.toString().length(), + ia, 4000); + s.send(hi); + + //RISPONDI CON LA CLASSIFICA + //TODO + return receiveWordsRes; //ULTIMO A JOINARE! INIZIA GIOCO } else { System.out.print("WAIT FRIENDS"); @@ -163,7 +174,10 @@ public class ThreadProxy implements Callable { e.printStackTrace(); } catch (ExecutionException e) { e.printStackTrace(); - } { + } catch (IOException e) { + e.printStackTrace(); + } + { } default: diff --git a/Server/src/com/texttwist/server/models/Dictionary.java b/Server/src/com/texttwist/server/models/Dictionary.java index 64e4b8e..0c0bd97 100644 --- a/Server/src/com/texttwist/server/models/Dictionary.java +++ b/Server/src/com/texttwist/server/models/Dictionary.java @@ -16,7 +16,7 @@ import java.util.stream.Stream; */ public class Dictionary { - DefaultListModel wordList = new DefaultListModel<>(); + static DefaultListModel wordList = new DefaultListModel<>(); private Random randomGenerator; public Dictionary(String dictionaryPath) { @@ -55,4 +55,13 @@ public class Dictionary { } } + public static Boolean isContainedInDictionary(String word){ + for(int i = 0; i< wordList.size(); i++){ + if(wordList.get(i).equals(word)) { + return true; + } + } + return false; + } + } diff --git a/Server/src/com/texttwist/server/models/Match.java b/Server/src/com/texttwist/server/models/Match.java index a9885dd..9c7a70a 100644 --- a/Server/src/com/texttwist/server/models/Match.java +++ b/Server/src/com/texttwist/server/models/Match.java @@ -17,15 +17,17 @@ public class Match { public DefaultListModel> playersSocket = new DefaultListModel>(); private boolean started = false; public String matchCreator; + public Integer multicastId; public DefaultListModel letters; public DefaultListModel> playersScore = new DefaultListModel>(); public Match(String matchCreator, DefaultListModel players){ for (int i =0; i < players.size(); i++){ this.playersStatus.addElement(new Pair<>(players.get(i), 0)); + this.playersScore.addElement(new Pair<>(players.get(i), -1)); this.playersSocket.addElement(new Pair<>(players.get(i), null)); } - + this.multicastId = this.generateMulticastId(); this.matchCreator = matchCreator; } @@ -45,9 +47,49 @@ public class Match { public void startGame(){ this.started=true; - } + public void setScore(String player, Integer score){ + for(int i = 0; i(player, score)); + } + } + } + + public Boolean allPlayersSendedHisScore(){ + for(int i = 0; i(playersScore.get(i).getKey(), 0)); + } + } + } + + public DefaultListModel getMatchPlayersScoreAsStringList(){ + DefaultListModel l = new DefaultListModel<>(); + for(int i = 0; i letters){ this.letters = letters; } diff --git a/Server/src/com/texttwist/server/tasks/ComputeScore.java b/Server/src/com/texttwist/server/tasks/ComputeScore.java new file mode 100644 index 0000000..f30dc9b --- /dev/null +++ b/Server/src/com/texttwist/server/tasks/ComputeScore.java @@ -0,0 +1,52 @@ +package com.texttwist.server.tasks; +import com.texttwist.server.models.Dictionary; +import com.texttwist.server.models.Match; + +import javax.swing.*; +import java.util.concurrent.Callable; + +/** + * Created by loke on 27/06/2017. + */ +public class ComputeScore implements Callable { + + public DefaultListModel words; + public String sender; + public Match match; + + public ComputeScore(String sender, Match match, DefaultListModel words){ + this.words = words; + this.sender = sender; + this.match = match; + } + + @Override + public Integer call() throws Exception { + System.out.println("SET SCORE"); + Integer score = 0; + for(int i = 0; i< words.size(); i++){ + if(isValid(words.get(i), match.letters)){ + score += words.get(i).length(); + } + } + match.setScore(sender, score); + return score; + } + + private Boolean isValid(String word, DefaultListModel letters) { + for ( int i =0 ; i< word.length(); i++){ + String c = Character.toString(word.charAt(i)); + Boolean isCharacterPresent = false; + for(int j =0 ; j< letters.size(); j++){ + if(c.equals(letters.get(j))){ + isCharacterPresent = true; + } + } + if(!isCharacterPresent){ + return false; + } + } + return Dictionary.isContainedInDictionary(word); + } + +} diff --git a/Server/src/com/texttwist/server/tasks/GenerateWords.java b/Server/src/com/texttwist/server/tasks/GenerateLetters.java similarity index 83% rename from Server/src/com/texttwist/server/tasks/GenerateWords.java rename to Server/src/com/texttwist/server/tasks/GenerateLetters.java index 220fd84..a15d09e 100644 --- a/Server/src/com/texttwist/server/tasks/GenerateWords.java +++ b/Server/src/com/texttwist/server/tasks/GenerateLetters.java @@ -12,10 +12,10 @@ import java.util.concurrent.Callable; /** * Created by loke on 25/06/2017. */ -public class GenerateWords implements Callable> { +public class GenerateLetters implements Callable> { - public GenerateWords(){ + public GenerateLetters(){ } @@ -24,7 +24,6 @@ public class GenerateWords implements Callable> { DefaultListModel l = new DefaultListModel(); String word = GameServer.dict.getRandomWord(6, 7); - System.out.println(word); for (int i = 0;i < word.length(); i++){ l.addElement(String.valueOf(word.charAt(i))); } diff --git a/Server/src/com/texttwist/server/tasks/JoinTimeout.java b/Server/src/com/texttwist/server/tasks/JoinTimeout.java new file mode 100644 index 0000000..e468bf3 --- /dev/null +++ b/Server/src/com/texttwist/server/tasks/JoinTimeout.java @@ -0,0 +1,36 @@ +package com.texttwist.server.tasks; + +import com.texttwist.client.App; +import com.texttwist.server.models.Match; +import models.Message; + +import javax.swing.*; +import java.nio.ByteBuffer; +import java.nio.channels.SocketChannel; +import java.util.concurrent.*; + +/** + * Created by loke on 23/06/2017. + */ +public class JoinTimeout implements Callable { + + public Match match; + + public JoinTimeout(Match match) { + this.match = match; + System.out.println("Math started, countdown for join!"); + + } + + @Override + public Boolean call() throws Exception { + try { + Thread.currentThread().sleep(7*60*1000); + System.out.println("TIMEOUT - MANDA MESSAGGIO ERRORE A TUTTI GLI UTENTI DEL MATCH"); + return false; + } catch (InterruptedException e) { + e.printStackTrace(); + } + return false; + } +} diff --git a/Server/src/com/texttwist/server/tasks/MatchTimeout.java b/Server/src/com/texttwist/server/tasks/MatchTimeout.java index 4f0bd70..788cf93 100644 --- a/Server/src/com/texttwist/server/tasks/MatchTimeout.java +++ b/Server/src/com/texttwist/server/tasks/MatchTimeout.java @@ -1,39 +1,36 @@ package com.texttwist.server.tasks; -import com.texttwist.client.App; +import com.sun.org.apache.xpath.internal.operations.Bool; import com.texttwist.server.models.Match; -import models.Message; -import javax.swing.*; -import java.nio.ByteBuffer; -import java.nio.channels.SocketChannel; -import java.util.concurrent.*; +import java.util.concurrent.Callable; /** - * Created by loke on 23/06/2017. + * Created by loke on 27/06/2017. */ public class MatchTimeout implements Callable { - public Match match; + Boolean receiveWords; - public MatchTimeout(Match match) { - this.match = match; - System.out.println("Math started, countdown for join!"); + public MatchTimeout(Boolean receiveWords) { + this.receiveWords = receiveWords; + System.out.println("Match started, countdown for end words!"); } @Override public Boolean call() throws Exception { - ByteBuffer buffer = ByteBuffer.allocate(1024); - try { - Thread.currentThread().sleep(7*60*1000); - - System.out.println("TIMEOUT - MANDA MESSAGGIO ERRORE A TUTTI GLI UTENTI DEL MATCH"); - return false; + Thread.currentThread().sleep(3*60*1000); //TODO 5*60*1000 + System.out.println("timer scaduto"); + receiveWords = false; + System.out.println("TIMEOUT - SETTA A 0 il punteggio degli utenti che non hanno inviato le parole"); + return false; } catch (InterruptedException e) { e.printStackTrace(); } - return false; + return true; } + } + diff --git a/Server/src/com/texttwist/server/tasks/ReceiveWords.java b/Server/src/com/texttwist/server/tasks/ReceiveWords.java new file mode 100644 index 0000000..5bddd5c --- /dev/null +++ b/Server/src/com/texttwist/server/tasks/ReceiveWords.java @@ -0,0 +1,60 @@ +package com.texttwist.server.tasks; + +import com.texttwist.server.Server; +import com.texttwist.server.models.Match; +import constants.Config; +import models.Message; + +import javax.swing.*; +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; + +/** + * Created by loke on 27/06/2017. + */ +public class ReceiveWords implements Callable{ + + protected ExecutorService threadPool = Executors.newCachedThreadPool(); + + public Boolean receiveWords = true; + public Match match; + public ReceiveWords(Match match) { + this.match = match; + } + + @Override + public Boolean call() throws Exception { + System.out.print("READY TO Receive words !!!!"); + + DatagramSocket serverSocket = new DatagramSocket(Config.WordsReceiverServerPort); + byte[] receiveData = new byte[1024]; + + Future matchTimeout = threadPool.submit(new MatchTimeout(receiveWords)); + + while(receiveWords) + { + DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length); + serverSocket.receive(receivePacket); + String rcv = new String( receivePacket.getData()); + System.out.println("RECEIVED: " + rcv); + Message msg = Message.toMessage(rcv); + Future computeScore = threadPool.submit(new ComputeScore(msg.sender, match, msg.data)); + + //Se tutti hanno inviato le parole, blocca il timer e restituisci true + computeScore.get(); + System.out.println(match.allPlayersSendedHisScore()); + if(match.allPlayersSendedHisScore()){ + //matchTimeout.cancel(true); + return true; + } + + } + return false; + } + +} diff --git a/Server/src/com/texttwist/server/tasks/SendMessageToAllPlayers.java b/Server/src/com/texttwist/server/tasks/SendMessageToAllPlayers.java new file mode 100644 index 0000000..7e265d4 --- /dev/null +++ b/Server/src/com/texttwist/server/tasks/SendMessageToAllPlayers.java @@ -0,0 +1,47 @@ +package com.texttwist.server.tasks; + +import com.texttwist.server.models.Match; +import models.Message; + +import javax.swing.*; +import java.nio.ByteBuffer; +import java.nio.channels.SocketChannel; +import java.util.concurrent.Callable; + +/** + * Created by loke on 27/06/2017. + */ +public class SendMessageToAllPlayers implements Callable { + + + public Match match; + public Message message; + public SocketChannel socketChannel; + public SendMessageToAllPlayers(Match match, Message message, SocketChannel socketChannel){ + this.match = match; + this.message = message; + this.socketChannel = socketChannel; + } + + @Override + public Boolean call() throws Exception { + ByteBuffer buffer = ByteBuffer.allocate(1024); + + if(!match.isStarted()) { + for (int i = 0; i < match.playersSocket.size(); i++) { + socketChannel = match.playersSocket.get(i).getValue(); + if (socketChannel != null) { + buffer.clear(); + byte[] byteMessage = message.toString().getBytes(); + buffer = ByteBuffer.wrap(byteMessage); + socketChannel.write(buffer); + //clientSocket.close(); + System.out.println("SEND TO ALL" + message.toString()); + return false; + } + + } + } + return true; + } +} diff --git a/client_1.log b/client_1.log index 88c6e74..b5435ea 100644 --- a/client_1.log +++ b/client_1.log @@ -2136,3 +2136,244 @@ LOGGER (Client1): Mon Jun 26 15:46:19 CEST 2017 - Client starting ... LOGGER (Client1): Mon Jun 26 15:46:28 CEST 2017 - Invoked invitation with username=b|[a] LOGGER (Client1): Mon Jun 26 15:46:28 CEST 2017 - Invoked invitation with username=b|[a] LOGGER (Client1): Mon Jun 26 15:46:28 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Mon Jun 26 23:53:17 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:53:19 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:53:20 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:53:22 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:53:24 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:54:09 CEST 2017 - Invoked invitation with username=a|[b, c] +LOGGER (Client1): Mon Jun 26 23:54:09 CEST 2017 - Invoked invitation with username=a|[b, c] +LOGGER (Client1): Mon Jun 26 23:54:09 CEST 2017 - a ti ha sfidato! +LOGGER (Client1): Mon Jun 26 23:54:10 CEST 2017 - Invoked invitation with username=a|[b, c] +LOGGER (Client1): Mon Jun 26 23:54:10 CEST 2017 - a ti ha sfidato! +LOGGER (Client1): Mon Jun 26 23:54:10 CEST 2017 - Invoked invitation with username=a|[b, c] +LOGGER (Client1): Mon Jun 26 23:54:10 CEST 2017 - Invoked invitation with username=a|[b, c] +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - Invoked invitation with username=d|[e] +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - Invoked invitation with username=d|[e] +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - Invoked invitation with username=d|[e] +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - Invoked invitation with username=d|[e] +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - d ti ha sfidato! +LOGGER (Client1): Mon Jun 26 23:55:01 CEST 2017 - Invoked invitation with username=d|[e] +LOGGER (Client1): Mon Jun 26 23:55:34 CEST 2017 - Client starting ... +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - d ti ha sfidato! +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Mon Jun 26 23:55:44 CEST 2017 - Invoked invitation with username=d|[b] +LOGGER (Client1): Tue Jun 27 10:14:07 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:14:08 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:14:11 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:14:27 CEST 2017 - Invoked invitation with username=c|[a, b] +LOGGER (Client1): Tue Jun 27 10:14:27 CEST 2017 - Invoked invitation with username=c|[a, b] +LOGGER (Client1): Tue Jun 27 10:14:27 CEST 2017 - c ti ha sfidato! +LOGGER (Client1): Tue Jun 27 10:14:28 CEST 2017 - Invoked invitation with username=c|[a, b] +LOGGER (Client1): Tue Jun 27 10:14:28 CEST 2017 - c ti ha sfidato! +LOGGER (Client1): Tue Jun 27 10:42:58 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:43:01 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:43:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:43:11 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 10:43:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:53:30 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:53:32 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:53:38 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:53:38 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 10:53:38 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:56:24 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:56:25 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:56:32 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:56:32 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 10:56:32 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 10:59:47 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:59:49 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 10:59:59 CEST 2017 - Invoked invitation with username=a|[b] +LOGGER (Client1): Tue Jun 27 10:59:59 CEST 2017 - Invoked invitation with username=a|[b] +LOGGER (Client1): Tue Jun 27 10:59:59 CEST 2017 - a ti ha sfidato! +LOGGER (Client1): Tue Jun 27 11:00:24 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 11:01:04 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 11:01:05 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 11:01:13 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 11:01:13 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 11:01:13 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:00:41 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:00:43 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:00:51 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:00:51 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:00:51 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:02:40 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:02:41 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:02:43 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:02:55 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:02:55 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:02:55 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:04:15 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:04:16 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:04:25 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:04:25 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:04:25 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:05:31 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:05:34 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:05:43 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:05:43 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:05:43 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:12:01 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:12:03 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:12:09 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:12:09 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:12:09 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:13:14 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:13:16 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:13:26 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:13:26 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:13:26 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:15:16 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:15:18 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 12:15:26 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 12:15:26 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 12:15:26 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:05:44 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:05:45 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:05:53 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:05:53 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:05:53 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:09:10 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:09:12 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:09:19 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:09:19 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:09:19 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:10:47 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:10:49 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:10:56 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:10:56 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:10:56 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:11:58 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:12:14 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:12:31 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:12:31 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:12:31 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:14:23 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:14:24 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:14:31 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:14:31 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:14:32 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:15:53 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:15:54 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:16:01 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:16:01 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:16:01 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:18:53 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:18:54 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:19:03 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:19:03 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:19:03 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:20:13 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:20:15 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:20:22 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:20:22 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:20:22 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:24:24 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:24:26 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:24:36 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:24:36 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:24:36 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:26:25 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:26:27 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:26:34 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:26:34 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 13:26:34 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:28:33 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:28:34 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 13:28:44 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:28:44 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 13:28:44 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:17:55 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:17:57 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:18:06 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:18:06 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:18:06 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:37:39 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:37:41 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:37:50 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:37:50 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:37:50 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:39:25 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:39:26 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:39:33 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:39:33 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:39:33 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:58:30 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:58:32 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:58:41 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:58:41 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:58:41 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:59:39 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:59:41 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 14:59:49 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 14:59:49 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 14:59:49 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:01:12 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:01:15 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:01:22 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:01:22 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:01:22 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:04:30 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:04:31 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:04:39 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:04:39 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:04:39 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:05:16 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:05:17 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:05:25 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:05:25 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:05:25 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:06:38 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:06:41 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:06:48 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:06:48 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:06:48 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:07:52 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:07:55 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:08:03 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:08:03 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:08:03 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:23:03 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:23:04 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:23:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:23:11 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:23:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:28:30 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:28:32 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:28:39 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:28:39 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:28:39 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:29:57 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:29:58 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:30:07 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:30:07 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:30:07 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:32:46 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:32:48 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:32:59 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:32:59 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:32:59 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:36:03 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:36:07 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:36:16 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:36:16 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:36:16 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:37:01 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:37:03 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:37:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:37:11 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:37:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:42:57 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:43:00 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:43:09 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:43:09 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:43:09 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:44:01 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:44:03 CEST 2017 - Client starting ... +LOGGER (Client1): Tue Jun 27 15:44:11 CEST 2017 - Invoked invitation with username=b|[a] +LOGGER (Client1): Tue Jun 27 15:44:11 CEST 2017 - b ti ha sfidato! +LOGGER (Client1): Tue Jun 27 15:44:11 CEST 2017 - Invoked invitation with username=b|[a] diff --git a/server.log b/server.log index 55327a4..9b635bf 100644 --- a/server.log +++ b/server.log @@ -4021,3 +4021,365 @@ LOGGER (Server): Mon Jun 26 15:46:21 CEST 2017 - Invoked login with username=a A LOGGER (Server): Mon Jun 26 15:46:21 CEST 2017 - Login successfull LOGGER (Server): Mon Jun 26 15:46:24 CEST 2017 - Invoked login with username=b AND password=b LOGGER (Server): Mon Jun 26 15:46:24 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:53:14 CEST 2017 - Server starting ... +LOGGER (Server): Mon Jun 26 23:53:14 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Mon Jun 26 23:53:14 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Mon Jun 26 23:53:14 CEST 2017 - Server started +LOGGER (Server): Mon Jun 26 23:53:44 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Mon Jun 26 23:53:45 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:53:47 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Mon Jun 26 23:53:47 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:53:49 CEST 2017 - Invoked login with username=c AND password=c +LOGGER (Server): Mon Jun 26 23:53:49 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:53:53 CEST 2017 - Invoked register with username=d AND password=d +LOGGER (Server): Mon Jun 26 23:53:53 CEST 2017 - Registration successfull +LOGGER (Server): Mon Jun 26 23:53:55 CEST 2017 - Invoked login with username=d AND password=d +LOGGER (Server): Mon Jun 26 23:53:55 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:53:58 CEST 2017 - Invoked register with username=e AND password=e +LOGGER (Server): Mon Jun 26 23:53:58 CEST 2017 - Registration successfull +LOGGER (Server): Mon Jun 26 23:54:00 CEST 2017 - Invoked login with username=e AND password=e +LOGGER (Server): Mon Jun 26 23:54:00 CEST 2017 - Login successfull +LOGGER (Server): Mon Jun 26 23:55:41 CEST 2017 - Invoked login with username=d AND password=d +LOGGER (Server): Mon Jun 26 23:55:41 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:13:45 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 10:13:46 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 10:13:46 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 10:13:46 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 10:14:14 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 10:14:14 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:14:18 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 10:14:18 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:14:23 CEST 2017 - Invoked login with username=c AND password=c +LOGGER (Server): Tue Jun 27 10:14:23 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:42:54 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 10:42:54 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 10:42:54 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 10:42:54 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 10:43:07 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 10:43:07 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:43:09 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 10:43:09 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:53:28 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 10:53:28 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 10:53:28 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 10:53:28 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 10:53:35 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 10:53:35 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:53:36 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 10:53:36 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:56:20 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 10:56:21 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 10:56:21 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 10:56:21 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 10:56:28 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 10:56:28 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:56:30 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 10:56:30 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:59:45 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 10:59:45 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 10:59:45 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 10:59:45 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 10:59:52 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 10:59:52 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 10:59:54 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 10:59:54 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 11:01:01 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 11:01:01 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 11:01:01 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 11:01:01 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 11:01:09 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 11:01:09 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 11:01:11 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 11:01:11 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:00:37 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:00:37 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:00:37 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:00:37 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:00:47 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:00:47 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:00:48 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:00:48 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:02:38 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:02:38 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:02:38 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:02:38 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:02:49 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:02:49 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:02:52 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:02:52 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:04:11 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:04:12 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:04:12 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:04:12 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:04:20 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:04:20 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:04:21 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:04:21 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:05:27 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:05:27 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:05:27 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:05:27 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:05:38 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:05:38 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:05:40 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:05:40 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:11:59 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:11:59 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:11:59 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:11:59 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:12:06 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:12:06 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:12:07 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:12:07 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:13:01 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:13:02 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:13:02 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:13:02 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:13:22 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:13:22 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:13:24 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:13:24 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:15:15 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 12:15:15 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 12:15:15 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 12:15:15 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 12:15:21 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 12:15:21 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 12:15:23 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 12:15:24 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:05:41 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:05:41 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:05:41 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:05:41 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:05:49 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:05:49 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:05:50 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:05:50 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:09:07 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:09:08 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:09:08 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:09:08 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:09:15 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:09:15 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:09:17 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:09:17 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:10:44 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:10:44 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:10:44 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:10:44 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:10:52 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:10:52 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:10:54 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:10:54 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:11:54 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:11:54 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:11:54 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:11:54 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:12:27 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:12:27 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:12:29 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:12:29 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:14:20 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:14:20 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:14:20 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:14:20 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:14:27 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:14:27 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:14:29 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:14:29 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:15:49 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:15:50 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:15:50 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:15:50 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:15:57 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:15:57 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:15:59 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:15:59 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:18:43 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:18:43 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:18:44 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:18:44 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:18:49 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:18:49 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:18:49 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:18:49 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:18:58 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:18:58 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:18:59 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:18:59 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:20:10 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:20:10 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:20:10 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:20:10 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:20:18 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:20:18 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:20:20 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:20:20 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:24:20 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:24:20 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:24:20 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:24:20 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:24:29 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:24:29 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:24:30 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:24:30 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:26:22 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:26:23 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:26:23 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:26:23 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:26:30 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:26:30 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:26:32 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:26:32 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:28:31 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 13:28:31 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 13:28:31 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 13:28:31 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 13:28:40 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 13:28:40 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 13:28:41 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 13:28:41 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:17:53 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 14:17:53 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 14:17:53 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 14:17:53 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 14:18:01 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 14:18:01 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:18:03 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 14:18:03 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:37:35 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 14:37:35 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 14:37:35 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 14:37:35 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 14:37:46 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 14:37:46 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:37:48 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 14:37:48 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:39:22 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 14:39:22 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 14:39:22 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 14:39:22 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 14:39:29 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 14:39:29 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:39:31 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 14:39:31 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:58:28 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 14:58:28 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 14:58:28 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 14:58:28 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 14:58:37 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 14:58:37 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:58:39 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 14:58:39 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:59:30 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 14:59:30 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 14:59:30 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 14:59:30 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 14:59:45 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 14:59:45 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 14:59:46 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 14:59:46 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:01:10 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:01:10 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:01:10 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:01:10 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:01:19 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:01:19 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:01:20 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:01:20 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:04:28 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:04:28 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:04:28 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:04:28 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:04:34 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:04:34 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:04:37 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:04:37 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:05:13 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:05:13 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:05:13 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:05:13 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:05:20 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:05:20 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:05:22 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:05:22 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:06:34 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:06:34 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:06:34 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:06:34 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:06:44 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:06:44 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:06:46 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:06:46 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:07:49 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:07:49 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:07:49 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:07:49 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:07:58 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:07:58 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:08:00 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:08:00 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:22:58 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:22:59 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:22:59 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:22:59 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:23:07 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:23:07 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:23:09 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:23:09 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:28:28 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:28:28 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:28:29 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:28:29 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:28:35 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:28:35 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:28:37 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:28:37 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:29:55 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:29:55 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:29:55 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:29:55 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:30:02 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:30:02 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:30:05 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:30:05 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:32:44 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:32:45 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:32:45 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:32:45 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:32:50 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:32:50 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:32:56 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:32:56 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:35:57 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:35:57 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:35:57 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:35:57 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:36:05 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:36:05 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:36:14 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:36:14 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:36:59 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:36:59 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:36:59 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:36:59 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:37:06 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:37:06 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:37:08 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:37:08 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:42:55 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:42:55 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:42:55 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:42:55 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:43:04 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:43:04 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:43:06 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:43:06 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:43:57 CEST 2017 - Server starting ... +LOGGER (Server): Tue Jun 27 15:43:57 CEST 2017 - Auth Service running at 9999 port... +LOGGER (Server): Tue Jun 27 15:43:57 CEST 2017 - Server started +LOGGER (Server): Tue Jun 27 15:43:57 CEST 2017 - Game Service is running at 10000 port... +LOGGER (Server): Tue Jun 27 15:44:06 CEST 2017 - Invoked login with username=a AND password=a +LOGGER (Server): Tue Jun 27 15:44:06 CEST 2017 - Login successfull +LOGGER (Server): Tue Jun 27 15:44:08 CEST 2017 - Invoked login with username=b AND password=b +LOGGER (Server): Tue Jun 27 15:44:08 CEST 2017 - Login successfull