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

# TcpEventBusBridge

`interface TcpEventBusBridge`

TCP EventBus bridge for Vert.x

Author
Paulo Lopes

### Functions

close | `abstract fun close(handler: Handler<AsyncResult<Void>>): Unit` `abstract fun close(): Unit` Close the current socket.
create | `open static fun create(vertx: Vertx): TcpEventBusBridge` `open static fun create(vertx: Vertx, options: BridgeOptions): TcpEventBusBridge` `open static fun create(vertx: Vertx, options: BridgeOptions, netServerOptions: NetServerOptions): TcpEventBusBridge` `open static fun create(vertx: Vertx, options: BridgeOptions, netServerOptions: NetServerOptions, eventHandler: Handler<BridgeEvent>): TcpEventBusBridge`
listen | `abstract fun listen(): TcpEventBusBridge` Listen on default port 7000 `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. `abstract fun listen(port: Int, address: String): TcpEventBusBridge` `abstract fun listen(port: Int, address: String, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge` Listen on specific port and bind to specific address `abstract fun listen(port: Int): TcpEventBusBridge` `abstract fun listen(port: Int, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge` Listen on specific port