Examples of host()


Examples of com.sissi.protocol.iq.si.Si.host()

    Map<String, Object> entity = super.write(si.parent().reply().setType(ProtocolType.SET.toString()));
    entity.put(Dictionary.FIELD_SID, si.getId());
    entity.put(Dictionary.FIELD_SIZE, si.getFile().getSize());
    entity.put(Dictionary.FIELD_NAME, si.getFile().getName());
    entity.put(Dictionary.FIELD_CLASS, element.getClass().getSimpleName());
    entity.put(Dictionary.FIELD_HOST, new String[] { si.host(this.delegation, super.jidBuilder.build(si.parent().getTo()).asStringWithBare()) });
    if (si.delay()) {
      entity.put(Dictionary.FIELD_DELAY, si.getDelay().getStamp());
    }
    return entity;
  }
View Full Code Here

Examples of com.sissi.protocol.iq.si.Si.host()

  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Si si = protocol.cast(Si.class).setFeature(this.feature);
    this.exchangerContext.wait(si.host(context.jid().asString(this.resource), super.build(si.parent().getTo()).asString(this.resource)), true, this.transferBuilder.build(new SiTransferParam(si)));
    context.write(si.parent().reply().setType(ProtocolType.RESULT));
    return true;
  }

  private class SiTransferParam implements TransferParam {
View Full Code Here

Examples of com.sissi.server.exchange.Exchanger.host()

      try (DBCursor cursor = BridgeExchangerContext.this.config.collection().find(BasicDBObjectBuilder.start(BridgeExchangerContext.this.date, BasicDBObjectBuilder.start("$lt", System.currentTimeMillis() - BridgeExchangerContext.this.timeout).get()).get(), BridgeExchangerContext.this.filter)) {
        while (cursor.hasNext()) {
          Exchanger exchanger = BridgeExchangerContext.this.activate(MongoUtils.asString(DBObject.class.cast(cursor.next()), Dictionary.FIELD_HOST));
          // Double check 4 multi thread
          if (exchanger != null) {
            BridgeExchangerContext.this.log.warn("Timeout socks: " + exchanger.host());
            exchanger.close(Terminal.ALL);
          }
        }
      }
      return this;
View Full Code Here

Examples of com.sun.corba.ee.spi.folb.SocketInfo.host()

        TransportAddress[] listTa = new TransportAddress[socketInfos.size()];
  for(int i=0; i<socketInfos.size(); i++){
            SocketInfo socketInfo = socketInfos.get(i);
            int sslport = socketInfo.port();
            String host = socketInfo.host();
            short short_port = Utility.intToShort(sslport);
            TransportAddress ta = new TransportAddress(host, short_port);
            listTa[i] = ta;
        }
  return listTa;
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.host()

        return _coordinator;
    }

    protected String id() {
        WOApplication app = WOApplication.application();
        String host = app.host();
        Number port = app.port();
        String appName = app.name();
        return host + ":" + port + "/" + appName;
    }
View Full Code Here

Examples of com.webobjects.monitor._private.MInstance.host()

    }

    public String pathDiff() {
        MInstance myInstance = myInstance();
        MApplication myApplication = myInstance.application();
        MHost myHost = myInstance.host();
        String appPath = null;

        if (myHost.osType().equals("UNIX")) {
            appPath = myApplication.unixPath();
        } else if (myHost.osType().equals("WINDOWS")) {
View Full Code Here

Examples of io.netty.handler.codec.socks.SocksCmdRequest.host()

    }

    private ChannelHandlerContext prepare(final ChannelHandlerContext ctx, Object msg, ChannelFuture future) throws IOException {
      if (msg.getClass() == SocksCmdRequest.class) {
        SocksCmdRequest cmd = SocksCmdRequest.class.cast(msg);
        return Socks5ProxyServerHandlerBuilder.this.exchangerContext.exists(cmd.host()) ? this.activate(Socks5ProxyServerHandlerBuilder.this.exchangerContext.activate(cmd.host()), future, ctx) : this.wait(cmd, ctx);
      }
      return ctx;
    }

    /**
 
View Full Code Here

Examples of io.netty.handler.codec.socks.SocksCmdRequest.host()

    }

    private ChannelHandlerContext prepare(final ChannelHandlerContext ctx, Object msg, ChannelFuture future) throws IOException {
      if (msg.getClass() == SocksCmdRequest.class) {
        SocksCmdRequest cmd = SocksCmdRequest.class.cast(msg);
        return Socks5ProxyServerHandlerBuilder.this.exchangerContext.exists(cmd.host()) ? this.activate(Socks5ProxyServerHandlerBuilder.this.exchangerContext.activate(cmd.host()), future, ctx) : this.wait(cmd, ctx);
      }
      return ctx;
    }

    /**
 
View Full Code Here

Examples of io.netty.handler.codec.socksx.v4.Socks4CmdRequest.host()

                    .channel(NioSocketChannel.class)
                    .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000)
                    .option(ChannelOption.SO_KEEPALIVE, true)
                    .handler(new DirectClientHandler(promise));

            b.connect(request.host(), request.port()).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    if (future.isSuccess()) {
                        // Connection established use handler provided results
                    } else {
View Full Code Here

Examples of io.netty.handler.codec.socksx.v5.Socks5CmdRequest.host()

                    .channel(NioSocketChannel.class)
                    .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000)
                    .option(ChannelOption.SO_KEEPALIVE, true)
                    .handler(new DirectClientHandler(promise));

            b.connect(request.host(), request.port()).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    if (future.isSuccess()) {
                        // Connection established use handler provided results
                    } else {
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.