Package voxo.common.entities

Examples of voxo.common.entities.Packet


import voxo.common.packets.VoiceConnexionPacket;

public class CancelVoiceAction {
  public CancelVoiceAction(ClientController c, String contactIp, VoiceConnexionPacket p) {
    try {
      NetworkService.sendPacket(contactIp, new Packet(EnumPacket.CLIENT_CancelVoice, 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


import voxo.common.packets.ClientRequestPacket;

public class ConfirmContactAction {
  public ConfirmContactAction(ClientController c, ClientRequestPacket p) {
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_ConfirmContact, 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

public class SendChatAction {

  public SendChatAction(ClientController c, String contactIP, ChatPacket p){
    try {
      NetworkService.sendPacket(contactIP, new Packet(EnumPacket.CLIENT_SendChat, 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

public class AddContactAction {

  public AddContactAction(ClientRequestPacket p) {
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_AddContact, p));
    } catch (UnknownHostException e) {
    } catch (IOException e) {
    }
  }
View Full Code Here

import voxo.common.packets.ChatPacket;

public class SendEmailAction {
  public SendEmailAction(ClientController c, ChatPacket cp){
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_SendEmail, cp));
    } 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

    MessageDigest md; 
    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_Register, 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

public class SearchAction {

  public SearchAction(ClientController c, String contactName){
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_SearchRequest, contactName));
    } 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.removeGUIListener(j);
    j.dispose();
    c.addGUIListener(new MainView(c));
   
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_Logout, username));
    } 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

        new NoticeView(msgn);
        break;
      case SERVER_HeartBeat:
        if(me!=null) {
          try {
            NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_HeartBeat, null));
          } catch (IOException e) {
            verbose.addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
          }
        }
        break;
View Full Code Here

import voxo.common.packets.ClientRequestPacket;

public class RemoveContactAction {
  public RemoveContactAction(ClientController c, ClientRequestPacket p) {
    try {
      NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_RemoveContact, 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

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.