Examples of listen()


Examples of org.vertx.java.core.http.HttpServer.listen()

    JsonArray permitted = new JsonArray();
      permitted.add(new JsonObject()); // Let everything through
      SockJSServer sockJSServer = vertx.createSockJSServer(httpServer);
      sockJSServer.bridge(new JsonObject().putString("prefix", "/bitcoin"), permitted, permitted);

    httpServer.listen(8080);
  }

}
View Full Code Here

Examples of org.vertx.java.core.net.NetServer.listen()

        parser.setOutput(handler);
        socket.dataHandler(parser);
      }

    });
    server.listen(port, hostName, new AsyncResultHandler<NetServer>() {
      @Override
      public void handle(AsyncResult<NetServer> asyncResult) {
        if (asyncResult.succeeded()) {
          // If using a wilcard port (0) then we ask the server for the actual port:
          DefaultEventBus.this.serverID = new ServerID(server.port(), hostName);
View Full Code Here

Examples of org.zeromq.ZMQ.Socket.listen()

        final URI url = genUrl(agentId);
        socket.getSocket().bind(url.toString());
        socket.setAgentUrl(url);
        socket.setAgentId(agentId);
        socket.setHost(host);
        socket.listen();
      }
    } catch (final Exception e) {
      LOG.log(Level.SEVERE, "Caught error:", e);
    }
  }
View Full Code Here

Examples of plar.ClientServer.Server.listen()

        for (int i = 0; i < args.length; i++) {
            if (args[i].equals("--noGui"))
                silent = true;
            // Common.info("["+args[i]+"]");
        }
        if (s.listen(Common.port)) {
            if (!silent) {
                java.awt.EventQueue.invokeLater(new Runnable() {
       
       
                    public void run() {
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.