Example usage for Java io.vertx.core.net NetSocket fields, constructors, methods, implement or subclass
The text is from its open source code.
Future | close() Close the NetSocket |
NetSocket | closeHandler(@Nullable Handler Set a handler that will be called when the NetSocket is closed |
NetSocket | endHandler(Handler This handler might be called after the close handler when the socket is paused and there are still buffers to deliver. |
NetSocket | exceptionHandler(Handler |
NetSocket | handler(Handler |
boolean | isSsl() |
NetSocket | pause() |
X509Certificate[] | peerCertificateChain() Note: Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. |
SocketAddress | remoteAddress() |
Future | 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. |
Future | write(String str) Write a String to the connection, encoded in UTF-8. |