Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.core.net | |
io.vertx.ext.eventbus.bridge.tcp | |
io.vertx.reactivex.core.net | |
io.vertx.rxjava.core.net |
Modifier and Type | Method and Description |
---|---|
NetSocket |
HttpClientResponse.netSocket()
Get a net socket for the underlying connection of this request.
|
NetSocket |
HttpServerRequest.netSocket()
|
Modifier and Type | Method and Description |
---|---|
default void |
HttpServerRequest.toNetSocket(Handler<AsyncResult<NetSocket>> handler)
Establish a TCP tunnel with the client.
|
Modifier and Type | Method and Description |
---|---|
NetSocket |
NetSocket.closeHandler(Handler<Void> handler)
Set a handler that will be called when the NetSocket is closed
|
NetSocket |
NetSocket.drainHandler(Handler<Void> handler) |
NetSocket |
NetSocket.endHandler(Handler<Void> endHandler)
Set an end handler.
|
NetSocket |
NetSocket.exceptionHandler(Handler<Throwable> handler) |
NetSocket |
NetSocket.fetch(long amount) |
NetSocket |
NetSocket.handler(Handler<Buffer> handler) |
NetSocket |
NetSocket.pause() |
NetSocket |
NetSocket.resume() |
default NetSocket |
NetSocket.sendFile(String filename)
Tell the operating system to stream a file as specified by
filename directly from disk to the outgoing connection,
bypassing userspace altogether (where supported by the underlying operating system. |
default NetSocket |
NetSocket.sendFile(String filename,
Handler<AsyncResult<Void>> resultHandler)
Same as
sendFile(String) but also takes a handler that will be called when the send has completed or
a failure has occurred |
default NetSocket |
NetSocket.sendFile(String filename,
long offset)
Tell the operating system to stream a file as specified by
filename directly from disk to the outgoing connection,
bypassing userspace altogether (where supported by the underlying operating system. |
default NetSocket |
NetSocket.sendFile(String filename,
long offset,
Handler<AsyncResult<Void>> resultHandler)
Same as
sendFile(String, long) but also takes a handler that will be called when the send has completed or
a failure has occurred |
NetSocket |
NetSocket.sendFile(String filename,
long offset,
long length)
Tell the operating system to stream a file as specified by
filename directly from disk to the outgoing connection,
bypassing userspace altogether (where supported by the underlying operating system. |
NetSocket |
NetSocket.sendFile(String filename,
long offset,
long length,
Handler<AsyncResult<Void>> resultHandler)
Same as
sendFile(String, long, long) but also takes a handler that will be called when the send has completed or
a failure has occurred |
NetSocket |
NetSocket.setWriteQueueMaxSize(int maxSize) |
NetSocket |
NetSocket.upgradeToSsl(Handler<Void> handler)
Upgrade channel to use SSL/TLS.
|
NetSocket |
NetSocket.upgradeToSsl(String serverName,
Handler<Void> handler)
Upgrade channel to use SSL/TLS.
|
NetSocket |
NetSocket.write(Buffer data) |
NetSocket |
NetSocket.write(Buffer message,
Handler<AsyncResult<Void>> handler)
Like
WriteStream.write(Object) but with an handler called when the message has been written
or failed to be written. |
NetSocket |
NetSocket.write(String str)
Write a
String to the connection, encoded in UTF-8. |
NetSocket |
NetSocket.write(String str,
Handler<AsyncResult<Void>> handler)
Same as
write(String) but with an handler called when the operation completes |
NetSocket |
NetSocket.write(String str,
String enc)
Write a
String to the connection, encoded using the encoding enc . |
NetSocket |
NetSocket.write(String str,
String enc,
Handler<AsyncResult<Void>> handler)
Same as
write(String, String) but with an handler called when the operation completes |
Modifier and Type | Method and Description |
---|---|
Handler<NetSocket> |
NetServer.connectHandler() |
ReadStream<NetSocket> |
NetServer.connectStream()
Return the connect stream for this server.
|
Modifier and Type | Method and Description |
---|---|
NetClient |
NetClient.connect(int port,
String host,
Handler<AsyncResult<NetSocket>> connectHandler)
Open a connection to a server at the specific
port and host . |
NetClient |
NetClient.connect(int port,
String host,
String serverName,
Handler<AsyncResult<NetSocket>> connectHandler)
Open a connection to a server at the specific
port and host . |
NetClient |
NetClient.connect(SocketAddress remoteAddress,
Handler<AsyncResult<NetSocket>> connectHandler)
Open a connection to a server at the specific
remoteAddress . |
NetClient |
NetClient.connect(SocketAddress remoteAddress,
String serverName,
Handler<AsyncResult<NetSocket>> connectHandler)
Open a connection to a server at the specific
remoteAddress . |
Modifier and Type | Method and Description |
---|---|
NetSocket |
BridgeEvent.socket()
Get the SockJSSocket instance corresponding to the event
|
Modifier and Type | Method and Description |
---|---|
NetSocket |
NetSocket.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static NetSocket |
NetSocket.newInstance(NetSocket arg) |
Constructor and Description |
---|
NetSocket(NetSocket delegate) |
Modifier and Type | Method and Description |
---|---|
NetSocket |
NetSocket.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static NetSocket |
NetSocket.newInstance(NetSocket arg) |
Constructor and Description |
---|
NetSocket(NetSocket delegate) |
Copyright © 2023 Eclipse. All rights reserved.