TcpEventBusBridge

TCP EventBus bridge for Vert.x

package

Default

Methods

__construct

__construct() 

Close the current socket.

close( $arg0 = null) : void

close()

Close the current socket.

param $handler [callable] the result handler close($handler)

Arguments

$arg0

callable

param $vertx [Vertx] <b> create($vertx) </b>

create( $arg0,  $arg1 = null,  $arg2 = null,  $arg3 = null) : \io\vertx\jphp\ext\eventbus\bridge\tcp\TcpEventBusBridge
static

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)

Arguments

$arg0

Vertx

$arg1

array

$arg2

array

$arg3

callable

Response

\io\vertx\jphp\ext\eventbus\bridge\tcp\TcpEventBusBridge

Listen on default port 7000

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)

Arguments

$arg0

callable | integer

$arg1

callable | string

$arg2

callable

Response

$this

self