Java io.vertx.core.net NetSocket fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.net NetSocket fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.net NetSocket.

The text is from its open source code.

Method

Futureclose()
Close the NetSocket
NetSocketcloseHandler(@Nullable Handler handler)
Set a handler that will be called when the NetSocket is closed
NetSocketendHandler(Handler endHandler)

This handler might be called after the close handler when the socket is paused and there are still buffers to deliver.

NetSocketexceptionHandler(Handler handler)
NetSockethandler(Handler handler)
booleanisSsl()
NetSocketpause()
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.
SocketAddressremoteAddress()
FuturesendFile(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.
Futurewrite(String str)
Write a String to the connection, encoded in UTF-8.