Function: nntp-send-string

nntp-send-string is a byte-compiled function defined in nntp.el.gz.

Signature

(nntp-send-string PROCESS STRING)

Documentation

Send STRING to PROCESS.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nntp.el.gz
;;; Internal functions.

(defsubst nntp-send-string (process string)
  "Send STRING to PROCESS."
  ;; We need to store the time to provide timeouts, and
  ;; to store the command so the we can replay the command
  ;; if the server gives us an AUTHINFO challenge.
  (setq nntp-last-command-time (current-time)
	nntp-last-command string)
  (when nntp-record-commands
    (nntp-record-command string))
  (process-send-string process (concat string nntp-end-of-line))
  (or (memq (process-status process) '(open run))
      (nntp-report "NNTP server %S closed connection" nntp-address)))