4 Commits

Author SHA1 Message Date
hawken93
510fa50c07 remove container_of, remove some underscores in the process 2014-10-05 01:03:46 +02:00
hawken93
c2505203d0 Removed casts in g_free(), therefore also removed some const declarations 2014-10-04 23:22:50 +02:00
hawken93
a35e5b4f9d Change coding style 2014-10-03 23:30:37 +02:00
Enrico Scholz
0236ee5eaa PROXY: implemented native proxy support
This patch creates a hook into the net_connect*() methods which call a
method to connect to a proxy.

Previous solution to send certain strings in the normal IRC dialog was
some kind of hack as most proxies require some kind of negotation.

E.g. HTTP proxies sent a 'HTTP/1.0 200 Connection established' HTTP header
and clients have to wait for it.  Else, sent bytes of the following IRC
login will be dropped silently.

With old method, it is also impossible to tunnel SSL IRC connections
through the proxy as proxy speaks plain text or a special protocol while
e.g. 'CONNECT ... HTTP/1.0' will be encrypted with key of IRC server.

There are further enhancements possible: the whole net_connect stuff
should be made asynchronously. Currently, only the hostname is resolved
in the background (which makes little sense of local proxies usually).
2014-10-03 15:06:20 +02:00