all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: ERC through a gateway
Date: Thu, 29 Apr 2010 19:58:14 +1000	[thread overview]
Message-ID: <87vdbashqh.fsf@rimspace.net> (raw)
In-Reply-To: yay7hnqk7cz.fsf@alma.europe.root.pri

pocmatos@gmail.com (Paulo J. Matos) writes:
> Daniel Pittman <daniel@rimspace.net> writes:
>
>>>> (defun dp/erc-via-ssh-and-netcat (name buffer host port)
>>>>   "Establish a connection via ssh and netcat on the destination host"
>>>>   (let ((process-connection-type nil)
>>>>         (command (list "/usr/bin/ssh" host "nc" "-q" "1" host (int-to-string port))))
>>>>     (apply 'start-process name buffer command)))
>>
>> This uses ssh to connect to a remote machine, then tunnels TCP/IP to a remote
>> system using netcat.
>
> So, you end up always needing a remote machine that you can ssh to that
> provides a way to do a direct tcp/ip connection, right?

Well, if you use my command as written you would.  OTOH, you can substitute
*any* command that connects STDIN/STDOUT to a remote TCP socket here, and it
will do the right thing.

So, if you need to tunnel through an HTTP CONNECT gateway get something that
connects that way, and replace the ssh call with that, and bob is your mothers
brother, as the saying goes.


Er, I have been assuming that y'all know how to look up the documentation for
the various customizable variables and so forth.  If not, there is a whole lot
of information about the API for this stuff hidden away there that you could
use to perhaps better understand what is happening.

For how to do that, if you don't know, see the "Documentation Lookup" section
of the info supplied with Emacs, or here:

http://www.gnu.org/software/emacs/manual/html_node/emacs/Documentation.html#Documentation

        Daniel
-- 
✣ Daniel Pittman            ✉ daniel@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons





  reply	other threads:[~2010-04-29  9:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27  8:59 ERC through a gateway Paulo J. Matos
2010-04-28 12:20 ` J. David Boyd
2010-04-28 13:59   ` Daniel Pittman
2010-04-28 14:47     ` J. David Boyd
2010-04-29  1:33       ` Daniel Pittman
2010-04-29  8:09         ` Paulo J. Matos
2010-04-29  9:58           ` Daniel Pittman [this message]
2010-04-30 11:58             ` J. David Boyd
2010-04-30 12:47               ` Peter Dyballa
2010-05-05 15:44                 ` J. David Boyd

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=87vdbashqh.fsf@rimspace.net \
    --to=daniel@rimspace.net \
    --cc=help-gnu-emacs@gnu.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.