vertx / io.vertx.ext.eventbus.bridge.tcp / TcpEventBusBridge / listen

# listen

`abstract fun listen(): TcpEventBusBridge`

Listen on default port 7000

Return
self

`abstract fun listen(handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge`

Listen on default port 7000 with a handler to report the state of the socket listen operation.

### Parameters

`handler` - the result handler

Return
self

`abstract fun listen(port: Int, address: String): TcpEventBusBridge`

Listen on specific port and bind to specific address

### Parameters

`port` - tcp port

`address` - tcp address to the bind

Return
self

`abstract fun listen(port: Int, address: String, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge`

Listen on specific port and bind to specific address

### Parameters

`port` - tcp port

`address` - tcp address to the bind

`handler` - the result handler

Return
self

`abstract fun listen(port: Int): TcpEventBusBridge`

Listen on specific port

### Parameters

`port` - tcp port

Return
self

`abstract fun listen(port: Int, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge`

Listen on specific port

### Parameters

`port` - tcp port

`handler` - the result handler

Return
self