Package hamsam.net

Examples of hamsam.net.ProxyInfo


    try
    {
      String host = server.substring(0, index);
      int port = Integer.parseInt(server.substring(index + 1));
      ProxyInfo info = protocol.getProxyInfo();
      SwitchboardServer sb = new SwitchboardServer(protocol, processor, host, port, info, conf);
      confSBMap.put(conf, sb);

      sb.join(authString, sessionID);
    }
View Full Code Here


    ConnectionInfos.currentProtocol.setListener(
      ConnectionInfos.MyIMListener);
    ConnectionInfos.MyIMListener.setPropertiesMgr(this.propertiesMgr);
    try
    {
      ProxyInfo info = getProxyInfo();
      ConnectionInfos.currentProtocol.connect(
        this.connectionPanel.getLogin(),
        this.connectionPanel.getPassword(),
        info);
    }
View Full Code Here

    int proxyPort = Integer.parseInt(prop.getValue("proxyPort"));

    switch(proxyType)
    {
      case 1:
        return new ProxyInfo(ProxyInfo.HTTP, proxyHost, proxyPort);
      case 2:
        return new ProxyInfo(ProxyInfo.SOCKS4, proxyHost, proxyPort);
      case 3:
        return new ProxyInfo(ProxyInfo.SOCKS5, proxyHost, proxyPort);
    }
   
    return new ProxyInfo();
  }
View Full Code Here

TOP

Related Classes of hamsam.net.ProxyInfo

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.