]> sourceware.org Git - systemtap.git/commit - remote.cxx
Add support for real URI syntax in remote targets
authorJosh Stone <jistone@redhat.com>
Fri, 21 Jan 2011 22:06:52 +0000 (14:06 -0800)
committerJosh Stone <jistone@redhat.com>
Fri, 21 Jan 2011 22:36:02 +0000 (14:36 -0800)
commit91fa953dfd30090b279e23be156af229e2b422e6
treefb6a276443e00c19b977de89da07dfcbad1680bc
parenta0e2728a26d3ff39ac5cea3758fcbe18951451bc
Add support for real URI syntax in remote targets

We still only support SSH for now, but this opens the door for other
protocols.  All of the following should work:

  --remote host
  --remote user@host
  --remote ssh://host/
  --remote ssh://user@host/

URI paths, queries, and fragments are all parsed, but don't have any
meaning yet, so they're treated as an error.  I can imagine using this
for protocol-specific options though, e.g. ssh://host/?Compression=yes

* remote.cxx (class uri_decoder): New, breaks down a URI string.
  (ssh_remote::ssh_remote): Add a constructor using a uri_decoder.
  (remote::create): Redirect based on the scheme of URI-looking remote
  targets.  Assume all others are still plain [user@]host for ssh.
remote.cxx
This page took 0.023726 seconds and 5 git commands to generate.