Example usage for io.vertx.core.net NetServer listen

List of usage examples for io.vertx.core.net NetServer listen

Introduction

In this page you can find the example usage for io.vertx.core.net NetServer listen.

Prototype

Future<NetServer> listen();

Source Link

Document

Start listening on the port and host as configured in the io.vertx.core.net.NetServerOptions used when creating the server.

Usage

From source file:examples.NetExamples.java

License:Open Source License

public void example3(Vertx vertx) {

    NetServer server = vertx.createNetServer();
    server.listen();
}