Represents a TCP server
package |
Default |
---|
__construct()
actualPort() : integer
integer
the actual port the server is listening on.
close( $arg0) : void
callable
connectHandler( $arg0) : \io\vertx\jphp\core\net\NetServer
As the server accepts TCP or SSL connections it creates an instance of @see \io\vertx\jphp\core\net\NetSocket and passes it to the connect handler.
callable
\io\vertx\jphp\core\net\NetServer
a reference to this, so the API can be used fluently
connectStream() : \io\vertx\jphp\core\net\ReadStream<NetSocket>
As the server accepts TCP or SSL connections it creates an instance of @see \io\vertx\jphp\core\net\NetSocket and passes it to the connect stream .
\io\vertx\jphp\core\net\ReadStream
the connect stream
isMetricsEnabled() : boolean
boolean
{@code true} if metrics are enabled
listen( $arg0, $arg1 = null, $arg2 = null) : $this
param $listenHandler [callable] handler that will be notified when listening or failed listen($listenHandler)
Like @see \io\vertx\jphp\core\net\NetServer::listen but providing a handler that will be notified when the server is listening, or fails.
param $port [integer] the port to listen on param $listenHandler [callable] handler that will be notified when listening or failed listen($port, $listenHandler)
Like @see \io\vertx\jphp\core\net\NetServer::listen but providing a handler that will be notified when the server is listening, or fails.
param $localAddress [SocketAddress] the local address to listen on param $listenHandler [callable] handler that will be notified when listening or failed listen($localAddress, $listenHandler)
Like @see \io\vertx\jphp\core\net\NetServer::listen but providing a handler that will be notified when the server is listening, or fails.
param $port [integer] the port to listen on param $host [string] the host to listen on param $listenHandler [callable] handler that will be notified when listening or failed listen($port, $host, $listenHandler)
callable | integer | SocketAddress
callable | string
callable
$this
a reference to this, so the API can be used fluently