File: network-stream.el.html
This library provides the function open-network-stream, which provides a
higher-level interface for opening TCP network processes than the built-in
function make-network-process. In addition to plain connections, it
supports TLS/SSL and STARTTLS connections.
Usage example:
(open-network-stream
"*nnimap*" buffer address port
:type 'network
:capability-command "1 CAPABILITY\\r\\n"
:success " OK "
:starttls-function
(lambda (capabilities)
(if (not (string-match "STARTTLS" capabilities))
nil
"1 STARTTLS\\r\\n")))
Defined variables (1)
network-stream-use-client-certificates | Whether to use client certificates for network connections. |
Defined functions (10)
network-stream--capability-command | (COMMAND GREETING) |
network-stream-certificate | (HOST SERVICE PARAMETERS) |
network-stream-command | (STREAM COMMAND EOC) |
network-stream-get-response | (STREAM START END-OF-COMMAND) |
network-stream-open-plain | (NAME BUFFER HOST SERVICE PARAMETERS) |
network-stream-open-shell | (NAME BUFFER HOST SERVICE PARAMETERS) |
network-stream-open-starttls | (NAME BUFFER HOST SERVICE PARAMETERS) |
network-stream-open-tls | (NAME BUFFER HOST SERVICE PARAMETERS) |
open-network-stream | (NAME BUFFER HOST SERVICE &rest PARAMETERS) |
open-protocol-stream | (NAME BUFFER HOST SERVICE &rest PARAMETERS) |