open class NetServer : Measured
Represents a TCP server NOTE: This class has been automatically generated from the io.vertx.core.net.NetServer non RX-ified interface using Vert.x codegen.
NetServer(delegate: NetServer) |
static val __TYPE_ARG: TypeArg<NetServer> |
open fun actualPort(): Int
The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port |
|
open fun close(): Unit
Close the server. This will close any currently open connections. The close may not complete until after this method has returned. open fun close(completionHandler: Handler<AsyncResult<Void>>): Unit
Like |
|
open fun connectHandler(handler: Handler<NetSocket>): NetServer
Supply a connect handler for this server. The server can only have at most one connect handler at any one time. As the server accepts TCP or SSL connections it creates an instance of io.vertx.rxjava.core.net.NetSocket and passes it to the connect handler. |
|
open fun connectStream(): ReadStream<NetSocket>
Return the connect stream for this server. The server can only have at most one handler at any one time. As the server accepts TCP or SSL connections it creates an instance of io.vertx.rxjava.core.net.NetSocket and passes it to the connect stream . |
|
open fun equals(other: Any?): Boolean |
|
open fun exceptionHandler(handler: Handler<Throwable>): NetServer
Set an exception handler called for socket errors happening before the connection is passed to the |
|
open fun getDelegate(): NetServer |
|
open fun hashCode(): Int |
|
open fun isMetricsEnabled(): Boolean
Whether the metrics are enabled for this measured object |
|
open fun listen(): NetServer
Start listening on the port and host as configured in the io.vertx.core.net.NetServerOptions used when creating the server. The server may not be listening until some time after the call to listen has returned. open fun listen(listenHandler: Handler<AsyncResult<NetServer>>): NetServeropen fun listen(port: Int, host: String, listenHandler: Handler<AsyncResult<NetServer>>): NetServeropen fun listen(port: Int, listenHandler: Handler<AsyncResult<NetServer>>): NetServeropen fun listen(localAddress: SocketAddress, listenHandler: Handler<AsyncResult<NetServer>>): NetServer
Like open fun listen(port: Int, host: String): NetServer
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. Port Host The server may not be listening until some time after the call to listen has returned. open fun listen(port: Int): NetServer
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. Port The server may not be listening until some time after the call to listen has returned. open fun listen(localAddress: SocketAddress): NetServer
Start listening on the specified local address, ignoring port and host configured in the io.vertx.core.net.NetServerOptions used when creating the server. The server may not be listening until some time after the call to listen has returned. |
|
open static fun newInstance(arg: NetServer): NetServer |
|
open fun rxClose(): Single<Void>
Like |
|
open fun rxListen(): Single<NetServer>open fun rxListen(port: Int, host: String): Single<NetServer>open fun rxListen(port: Int): Single<NetServer>open fun rxListen(localAddress: SocketAddress): Single<NetServer>
Like |
|
open fun toString(): String |