Package hamsam.protocol.msn

Examples of hamsam.protocol.msn.Command


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

    Command cmd = new Command("VER");
    cmd.addParam("MSNP8");
    sendToServer(cmd, "processVersion");
  }
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);
        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;
      }
    }
    shutdown();
View Full Code Here

TOP

Related Classes of hamsam.protocol.msn.Command

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.