From: Jeff Burdges Date: Fri, 31 Jul 2015 12:19:05 +0000 (+0000) Subject: Export proxy methods X-Git-Tag: initial-import-from-subversion-38251~1557 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa6f2fcf62b6128ac6172dc408e22483afeeef3b;p=oweals%2Fgnunet.git Export proxy methods --- diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h index 1fe00f62c..02b2304c9 100644 --- a/src/include/gnunet_connection_lib.h +++ b/src/include/gnunet_connection_lib.h @@ -359,6 +359,26 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct *th); +/** + * Create a connection to be proxied using a given connection. + * + * @param cph connection to proxy server + * @return connection to be proxied + */ +struct GNUNET_CONNECTION_Handle * +GNUNET_CONNECTION_create_proxied_from_handshake (struct GNUNET_CONNECTION_Handle *cph); + + +/** + * Activate proxied connection and destroy initial proxy handshake connection. + * There must not be any pending requests for reading or writing to the + * proxy hadshake connection at this time. + * + * @param proxied connection connection to proxy server + */ +void +GNUNET_CONNECTION_acivate_proxied (struct GNUNET_CONNECTION_Handle *proxied); + #if 0 /* keep Emacsens' auto-indent happy */ {