Marc-André Lureau píše v Pá 24. 08. 2012 v 15:58 +0200: > Hi, > > The following series allows to connect to a Spice server via a HTTP > proxy, using the CONNECT method. It can be tested with a Squid proxy, > (which allows CONNECT on various ports) by setting the environment > variable SPICE_PROXY=proxy_host:proxy_port (it doesn't support any > other parameters atm, such as username/password) > > The implementation is realized using GSocketClient & GProxy. The HTTP > proxy is not part of GLib yet, but a fairly complete implementation > exists in the Wocky project (from Telepathy). > > GLib proxy handling is relatively recent, and requires v2.26. We may > want to make its uage optionnal to still support older distributions. You'll have to make it optional as long as RHEL 6 will be supported. It would be nice to include it automagically if built on system with glib >= 2.26 though. David > This is left as an exercice for the future :) > > Using GSocketClient & GProxy allows to leverage existing and future > proxy from GLib (currently various socks version supported). > > Marc-André Lureau (6): > Add wocky HTTP proxy > spice-channel: plug a small memory leak > spice-channel: remove unnecessary g_socket_close() > session: allow to connect via HTTP CONNECT proxy > Add SpiceProxy object > spice-session: make spice_session_channel_open_host() async again > > configure.ac | 2 +- > gtk/Makefile.am | 4 + > gtk/spice-channel.c | 3 +- > gtk/spice-proxy.c | 236 +++++++++++++++++++++++++++ > gtk/spice-proxy.h | 59 +++++++ > gtk/spice-session.c | 186 ++++++++++++++------- > gtk/wocky-http-proxy.c | 429 +++++++++++++++++++++++++++++++++++++++++++++++++ > gtk/wocky-http-proxy.h | 42 +++++ > 8 files changed, 904 insertions(+), 57 deletions(-) > create mode 100644 gtk/spice-proxy.c > create mode 100644 gtk/spice-proxy.h > create mode 100644 gtk/wocky-http-proxy.c > create mode 100644 gtk/wocky-http-proxy.h > -- David Jaša, RHCE SPICE QE based in Brno GPG Key: 22C33E24 Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel