public interface TcpBinding extends Connection
Defines characteristics of a TCP binding, like stream encryption via TLS and stream compression.
Modifier and Type | Method and Description |
---|---|
void |
compressConnection(java.lang.String method,
java.lang.Runnable onSuccess)
Compresses the connection.
|
void |
secureConnection()
Secures the connection with TLS.
|
close, closeAsync, closeAsync, closeFuture, flush, getConfiguration, getRemoteAddress, getStreamId, isSecure, isUsingAcknowledgements, open, send, write
void secureConnection() throws java.lang.Exception
Secures the connection with TLS.
java.lang.Exception
- Any exception which may occur during TLS handshake.void compressConnection(java.lang.String method, java.lang.Runnable onSuccess) throws java.lang.Exception
Compresses the connection.
method
- The compression method.onSuccess
- Invoked after the compression method has been chosen, but before compression is applied.java.lang.Exception
Copyright © 2014–2019 XMPP.rocks. All rights reserved.