Package hamsam.protocol.msn

Examples of hamsam.protocol.msn.Command.addParam()


    super("messenger.hotmail.com", 1863, info);
    this.protocol = protocol;
    this.processor = processor;

    Command cmd = new Command("VER");
    cmd.addParam("MSNP8");
    sendToServer(cmd, "processVersion");
  }

  /**
   * Process the reply for VER command.
View Full Code Here


    if(cmd instanceof Command)
    {
      if("VER".equals(cmd.getType()) && "MSNP8".equals(cmd.getParam(0)))
      {
        Command cvr = new Command("CVR");
        cvr.addParam("0x0409");
       
        String os = System.getProperty("os.name").toLowerCase();
        if(os.length() > 3)
          os = os.substring(0, 3);
        cvr.addParam(os);
View Full Code Here

        cvr.addParam("0x0409");
       
        String os = System.getProperty("os.name").toLowerCase();
        if(os.length() > 3)
          os = os.substring(0, 3);
        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
View Full Code Here

       
        String os = System.getProperty("os.name").toLowerCase();
        if(os.length() > 3)
          os = os.substring(0, 3);
        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));
View Full Code Here

        String os = System.getProperty("os.name").toLowerCase();
        if(os.length() > 3)
          os = os.substring(0, 3);
        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));
View Full Code Here

        if(os.length() > 3)
          os = os.substring(0, 3);
        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));

        sendToServer(cvr, "processClientVersion");
View Full Code Here

          os = os.substring(0, 3);
        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));

        sendToServer(cvr, "processClientVersion");
        return;
View Full Code Here

        cvr.addParam(os);
        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));

        sendToServer(cvr, "processClientVersion");
        return;
      }
View Full Code Here

        cvr.addParam(Util.urlDecode(System.getProperty("os.version")));
        cvr.addParam(Util.urlEncode(System.getProperty("os.arch")));
        cvr.addParam("Hamsam");
        cvr.addParam("0.2.3");
        cvr.addParam("Hamsam");
        cvr.addParam(Util.urlEncode(this.protocol.getUsername()));

        sendToServer(cvr, "processClientVersion");
        return;
      }
    }
View Full Code Here

    if(cmd instanceof Command)
    {
      if("CVR".equals(cmd.getType()))
      {
        Command usr = new Command("USR");
        usr.addParam("TWN");
        usr.addParam("I")// I for initiate
        usr.addParam(protocol.getUsername());
        sendToServer(usr, "processAuthentication");
        return;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.