TCP EventBus bridge for Vert.x
package |
Default |
---|
__construct()
close( $arg0 = null) : void
close()
Close the current socket.
param $handler [callable] the result handler close($handler)
callable
create( $arg0, $arg1 = null, $arg2 = null, $arg3 = null) : \io\vertx\jphp\ext\eventbus\bridge\tcp\TcpEventBusBridge
param $vertx [Vertx] param $options [array] create($vertx, $options)
param $vertx [Vertx] param $options [array] param $netServerOptions [array] create($vertx, $options, $netServerOptions)
param $vertx [Vertx] param $options [array] param $netServerOptions [array] param $eventHandler [callable] create($vertx, $options, $netServerOptions, $eventHandler)
Vertx
array
array
callable
\io\vertx\jphp\ext\eventbus\bridge\tcp\TcpEventBusBridge
listen( $arg0 = null, $arg1 = null, $arg2 = null) : $this
listen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.
param $handler [callable] the result handler listen($handler)
Listen on specific port
param $port [integer] tcp port listen($port)
Listen on specific port and bind to specific address
param $port [integer] tcp port param $address [string] tcp address to the bind listen($port, $address)
Listen on specific port
param $port [integer] tcp port param $handler [callable] the result handler listen($port, $handler)
Listen on specific port and bind to specific address
param $port [integer] tcp port param $address [string] tcp address to the bind param $handler [callable] the result handler listen($port, $address, $handler)
callable | integer
callable | string
callable
$this
self