From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: nntp.el: netcat
Date: Fri, 28 Mar 2008 23:55:38 -0400 [thread overview]
Message-ID: <jwv4paqb2yt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <b4m4pasmwjq.fsf@jpl.org> (Katsumi Yamaoka's message of "Thu, 27 Mar 2008 16:54:33 +0900")
> The function name `nntp-open-via-netcat' found in the doc string
> of `nntp-open-telnet-stream' is not proper for it. Because the
> word `via' has been being used for the function names and the
> variable names that are used for the nntp connection established
> via the intemediate host. Moreover, there is no function
> definition for it in nntp.el. I'd suggest the function name
> `nntp-open-netcat-stream'.
I'll trust your judgment on that. All I wanted to do was to make sure
we propose to use netcat before telnet since I've had several problems
with telnet.
> ,---- (info "(gnus)Example Methods") ----
> | If you're behind a firewall, but have direct access to the outside
> | world through a wrapper command like "runsocks", you could open a
> | socksified netcat connection to the news server as follows:
> |
> | (nntp "outside"
> | (nntp-pre-command "runsocks")
> | (nntp-open-connection-function nntp-open-via-netcat)
> | (nntp-address "the.news.server"))
> `----
> Have you verified it?
No, indeed.
> In addition, the arguments ("-e" "none") passed to ssh seems to
> be necessary:
> ,---- SSH(1) ----
> | -e escape_char
> | Sets the escape character for sessions with a pty (default: ‘~’).
> | The escape character is only recognized at the beginning of a
> | line. The escape character followed by a dot (‘.’) closes the
> | connection; followed by control-Z suspends the connection; and
> | followed by itself sends the escape character once. Setting the
> | character to “none” disables any escapes and makes the session
> | fully transparent.
> `----
No, because the ssh connection will not use a pty (that was necessary
(and problematic) for telnet, but luckily it's not needed for netcat).
Stefan
next prev parent reply other threads:[~2008-03-29 3:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1JZX3Z-0004w7-P3@cvs.savannah.gnu.org>
2008-03-13 14:12 ` nntp.el: netcat (was: Changes to emacs/lisp/gnus/nntp.el,v) Reiner Steib
2008-03-14 15:01 ` nntp.el: netcat Stefan Monnier
2008-03-27 7:54 ` Katsumi Yamaoka
2008-03-29 3:55 ` Stefan Monnier [this message]
2008-03-31 4:09 ` Katsumi Yamaoka
2008-03-31 13:59 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4paqb2yt.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=ding@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.