abla/platform/host/tls
Generated from source.
Import with import "abla/platform/host/tls".
Source: abla/platform/host/tls/entry.ab
ablaHostTlsAvailable (fun)
fun ablaHostTlsAvailable(): bool
Reports whether the pure TLS backend is available on this host.
ablaHostTlsOpen (fun)
fun ablaHostTlsOpen(host: string, port: int, timeoutMilliseconds: int): int
A connection handle (negative on failure; ablaHostTlsError() says why).
ablaHostTlsOpenWithCa (fun)
fun ablaHostTlsOpenWithCa(
host: string,
port: int,
timeoutMilliseconds: int,
caPath: string
): int
Opens a verified connection using the supplied CA file and returns its handle, or -1 on failure.
ablaHostTlsRead (fun)
fun ablaHostTlsRead(handle: int, maximum: int): string
Reads up to the given number of decrypted bytes, returning an empty string when no bytes are available or on failure.
ablaHostTlsWrite (fun)
fun ablaHostTlsWrite(handle: int, contents: string): int
Writes plaintext to the connection and returns the number of bytes written or a negative result on error.
ablaHostTlsSetTimeouts (fun)
fun ablaHostTlsSetTimeouts(
handle: int,
readMilliseconds: int,
writeMilliseconds: int
): bool
Replaces the limits on one read and one write; 0 waits as long as it takes.
ablaHostTlsClose (fun)
fun ablaHostTlsClose(handle: int): bool
Closes a connection by its handle and reports whether the close succeeded.
ablaHostTlsError (fun)
fun ablaHostTlsError(): string
Returns the latest error text from the pure TLS backend.
ablaHostTlsListen (fun)
fun ablaHostTlsListen(
host: string,
port: int,
backlog: int,
dualStack: bool,
certificatePath: string,
privateKeyPath: string
): int
Creates a listener using the given certificate and key, returning its descriptor or -1 on setup failure.
ablaHostTlsListenerPort (fun)
fun ablaHostTlsListenerPort(handle: int): int
Returns the listener's bound local port, or -1 for an unknown handle.
ablaHostTlsAccept (fun)
fun ablaHostTlsAccept(handle: int): int
Accepts and handshakes a client, returning its handle or -1 for an unknown listener or failure.
ablaHostTlsListenerClose (fun)
fun ablaHostTlsListenerClose(handle: int): bool
Removes and closes the listener, returning false if the handle is unknown or close fails.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.