Example #1
0
 public static void sendInfo(SocketChannel sc, Event e) throws IOException {
   NetUtil.writeLine(sc, "INFO " + e.getType().name() + " " + e.getX() + " " + e.getY());
 }
Example #2
0
 public static void remove(SocketChannel sc, Event e) throws IOException {
   NetUtil.writeLine(sc, "REMOVE " + e.getType().name() + " " + e.getX() + " " + e.getY());
 }
Example #3
0
 public static void sendInfos(SocketChannel sc, ArrayList<Event> list) throws IOException {
   NetUtil.writeLine(sc, "INFOS " + list.size());
   for (Event e : list) {
     sendInfo(sc, e);
   }
 }