(port _)
Returns the port the server is listening on.
Returns the port the server is listening on.
(wait-for-close _)
Blocks until the server has been closed.
Blocks until the server has been closed.
(create-client pipeline-builder
ssl-context
bootstrap-transform
remote-address
local-address
epoll?)
(get-default-event-loop-threads)
Determines the default number of threads to use for a Netty EventLoopGroup. This mimics the default used by Netty as of version 4.1.
Determines the default number of threads to use for a Netty EventLoopGroup. This mimics the default used by Netty as of version 4.1.
(self-signed-ssl-context)
A self-signed SSL context for servers.
A self-signed SSL context for servers.
(sink ch)
(sink ch downstream? coerce-fn)
(sink ch downstream? coerce-fn additional-description)
(ssl-client-context)
(ssl-client-context {:keys [private-key private-key-password certificate-chain
trust-store]})
Creates a new client SSL context.
Keyword arguments are:
|:---|:----
| private-key
| A java.io.File
, java.io.InputStream
, or java.security.PrivateKey
containing the client-side private key.
| certificate-chain
| A java.io.File
, java.io.InputStream
, or array of java.security.cert.X509Certificate
containing the client's certificate chain.
| private-key-password
| A string, the private key's password (optional).
| trust-store
| A java.io.File
, java.io.InputStream
, array of java.security.cert.X509Certificate
, or a javax.net.ssl.TrustManagerFactory
to initialize the context's trust manager.
Note that if specified, the types of private-key
and certificate-chain
must be
"compatible": either both input streams, both files, or a private key and an array
of certificates.
Creates a new client SSL context. Keyword arguments are: |:---|:---- | `private-key` | A `java.io.File`, `java.io.InputStream`, or `java.security.PrivateKey` containing the client-side private key. | `certificate-chain` | A `java.io.File`, `java.io.InputStream`, or array of `java.security.cert.X509Certificate` containing the client's certificate chain. | `private-key-password` | A string, the private key's password (optional). | `trust-store` | A `java.io.File`, `java.io.InputStream`, array of `java.security.cert.X509Certificate`, or a `javax.net.ssl.TrustManagerFactory` to initialize the context's trust manager. Note that if specified, the types of `private-key` and `certificate-chain` must be "compatible": either both input streams, both files, or a private key and an array of certificates.
(start-server pipeline-builder
ssl-context
bootstrap-transform
on-close
socket-address
epoll?)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close