Package voxo.common.entities

Examples of voxo.common.entities.Packet


      c.setVoiceSender(new VoiceSender(contactIp));
      Thread sender = new Thread(c.getVoiceSender());
      sender.start();

      try {
        NetworkService.sendPacket(contactIp, new Packet(EnumPacket.CLIENT_ConfirmVoice, p));
      } catch (UnknownHostException e) {
        c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
        new ServerErrorAction(c);
      } catch (IOException e) {
        c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
View Full Code Here


      c.setVoiceReceiver(new VoiceReceiver());
      Thread t = new Thread(c.getVoiceReceiver());
      t.start();

      try {
        NetworkService.sendPacket(contactIp, new Packet(EnumPacket.CLIENT_AskVoice, p));
      } catch (UnknownHostException e) {
        c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
        new ServerErrorAction(c);
      } catch (IOException e) {
        c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
View Full Code Here

   
    try {
      md = MessageDigest.getInstance("MD5");
      md.update(p.getPwd().getBytes(), 0, p.getPwd().length());
      p.setPwd(new BigInteger(1, md.digest()).toString(16));
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_Login, p));
    } catch (UnknownHostException e) {
      c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
      new ServerErrorAction(c);
    } catch (IOException e) {
      c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
View Full Code Here

          srvSock.setReuseAddress(true);
          sock = srvSock.accept();
          in = sock.getInputStream();
          oin = new ObjectInputStream(in);

          Packet p = (Packet) oin.readObject();

          // Close all the readers and the socket instance to be ready
          // for next packet
          new PacketParser(p).start();
         
View Full Code Here

TOP

Related Classes of voxo.common.entities.Packet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.