Function: nntp-open-netcat-stream

nntp-open-netcat-stream is a byte-compiled function defined in nntp.el.gz.

Signature

(nntp-open-netcat-stream BUFFER)

Documentation

Open a connection to an nntp server through netcat.

I.e. use the nc command rather than Emacs's builtin networking code.

Please refer to the following variables to customize the connection:
- nntp-pre-command,
- nntp-netcat-command,
- nntp-netcat-switches,
- nntp-address,
- nntp-port-number.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nntp.el.gz
(defun nntp-open-netcat-stream (buffer)
  "Open a connection to an nntp server through netcat.
I.e. use the `nc' command rather than Emacs's builtin networking code.

Please refer to the following variables to customize the connection:
- `nntp-pre-command',
- `nntp-netcat-command',
- `nntp-netcat-switches',
- `nntp-address',
- `nntp-port-number'."
  (let ((command `(,nntp-netcat-command
		   ,@nntp-netcat-switches
                   ,nntp-address
                   ,(nntp-service-to-port nntp-port-number))))
    (and nntp-pre-command (push nntp-pre-command command))
    (let ((process-connection-type nil)) ;See `nntp-open-via-rlogin-and-netcat'.
      (apply #'start-process "nntpd" buffer command))))