Package jetbrains.communicator.p2p

Examples of jetbrains.communicator.p2p.XmlRpcTargetImpl


                                      remotePort, projects, UserPresence.fromVector(userPresence));
    return true;
  }

  public static void addSelfTo(int port, InetAddress remoteAddress, InetAddress selfAddress, int myPort, Collection<String> projects, UserPresence presence) {
    XmlRpcTargetImpl target = new XmlRpcTargetImpl(port, remoteAddress);
    NetworkUtil.sendMessage(target, ID, "addOnlineUser",
                            selfAddress.getHostAddress(),
                            StringUtil.toXMLSafeString(StringUtil.getMyUsername()),
                            myPort,
                            new Vector<String>(projects),
View Full Code Here


    int port = getPort(user);
    if (port < 0) {
      return false;
    }
   
    XmlRpcTargetImpl target = new XmlRpcTargetImpl(port, P2PTransport.getInstance().getAddress(user));
    List<String> parameters = new ArrayList<String>();
    parameters.add(StringUtil.toXMLSafeString(StringUtil.getMyUsername()));
    parameters.addAll(myCommandParameters);
    setResponse(NetworkUtil.sendMessage(target, myCommandId, myCommand, ArrayUtil.toObjectArray(parameters)));
    return null != myResponse;
View Full Code Here

TOP

Related Classes of jetbrains.communicator.p2p.XmlRpcTargetImpl

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.