Example usage for Java io.vertx.core.net NetServer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | actualPort() The actual port the server is listening on. |
void | close(Handler Like #close but supplying a handler that will be notified when close is complete. |
NetServer | connectHandler(@Nullable Handler Supply a connect handler for this server. |
NetServer | exceptionHandler(Handler Set an exception handler called for socket errors happening before the connection is passed to the #connectHandler , e.g during the TLS handshake. |
NetServer | listen(Handler Like #listen but providing a handler that will be notified when the server is listening, or fails. |
Future | listen(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server. |
Future | listen(SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server. |
Future | listen() Start listening on the port and host as configured in the io.vertx.core.net.NetServerOptions used when creating the server. |
Future | listen(int port, String host) Start listening on the specified port and host, ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server. |
NetServer | listen(int port, Handler Like #listen(int) but providing a handler that will be notified when the server is listening, or fails. |
NetServer | listen(SocketAddress localAddress, Handler Like #listen(SocketAddress) but providing a handler that will be notified when the server is listening, or fails. |
NetServer | listen(int port, String host, Handler Like #listen(int,String) but providing a handler that will be notified when the server is listening, or fails. |