cascardo/rnetproxy.git
17 years agoBuild with iksemel
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 19:38:17 +0000 (19:38 +0000)]
Build with iksemel

iksemel will be used as XML parser and we will have to link to
it. Thence, we check for its presence, using pkg-config with autoconf.

17 years agoAutogenerated files by autoconf/automake/aclocal are precious
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 19:35:20 +0000 (19:35 +0000)]
Autogenerated files by autoconf/automake/aclocal are precious

Files that are generated by autoconf, automake and aclocal should be
considered precious, not source. The other files required in a tree by
automake will, eventually, be included in the source (when they have
content).

17 years agoKeep reading from connection after read event
Thadeu Lima de Souza Cascardo [Fri, 22 Sep 2006 18:31:29 +0000 (18:31 +0000)]
Keep reading from connection after read event

When read event of some connection is dispatched, request new reading.

17 years agoApplied the GPL to all source files
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 16:49:03 +0000 (16:49 +0000)]
Applied the GPL to all source files

Applied the GPL to all C source files, including headers. Added
license as COPYING file.

17 years agoDetects Jabber protocol and hook to it
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 15:52:58 +0000 (15:52 +0000)]
Detects Jabber protocol and hook to it

XMPP Stream is detected and another hook gets to handle the
connection, which will parse the protocol and connect to the
appropriate server.

17 years agoConnection events are handled by hooks
Thadeu Lima de Souza Cascardo [Thu, 14 Sep 2006 15:17:28 +0000 (15:17 +0000)]
Connection events are handled by hooks

Every connection event (connect, close, read, write) is handled by a
hook, so we can plugin hooks for every protocol, including protocol
detection.

17 years agoChanged configuration file default path
Thadeu Lima de Souza Cascardo [Wed, 13 Sep 2006 00:02:43 +0000 (00:02 +0000)]
Changed configuration file default path

Configuration filename default path is defined by configure script
prefix and sysconfdir, while building.

17 years agoAutoconfiscated
Thadeu Lima de Souza Cascardo [Wed, 13 Sep 2006 00:01:05 +0000 (00:01 +0000)]
Autoconfiscated

Autoconf and automake files. Only those files needed to generate the
other ones using aclocal, autoconf and automake.

17 years agoConfiguration file may be specified in command line
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 23:54:26 +0000 (23:54 +0000)]
Configuration file may be specified in command line

The configuration filename may be specified in command line, which is
parsed using GOptionContext.

17 years agoProgram messages are logged to syslog
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 21:39:40 +0000 (21:39 +0000)]
Program messages are logged to syslog

Program messages are sent to syslog with LOG_DAEMON facility. They are
generated using GLib log support with a custom handler.

17 years agoUse GLib log facility instead of printf
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 21:17:27 +0000 (21:17 +0000)]
Use GLib log facility instead of printf

printf and fprintf calls were replaced by g_log calls so log level is
used and we can get to use a handler that sends to syslog later.

17 years agoFixed configuration file name
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 19:16:40 +0000 (19:16 +0000)]
Fixed configuration file name

Fixed configuration file name in code to match previous renaming.

17 years agoFixed memory leak for closed connections
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 19:15:40 +0000 (19:15 +0000)]
Fixed memory leak for closed connections

Unrefs connections and close the other end when one end closes the
connection.

17 years agoRemoved and renamed files
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 18:59:51 +0000 (18:59 +0000)]
Removed and renamed files

Removed pure socket implementation and renamed main files to match
project name.

17 years agoConnections to localhost:80 proxied by GNet
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 18:57:17 +0000 (18:57 +0000)]
Connections to localhost:80 proxied by GNet

Connections are proxied to localhost:80 using GNet, in an equivalent
way to proxy.c which is marked to be removed.

17 years agoProxies connections to jabber.org
Thadeu Lima de Souza Cascardo [Tue, 12 Sep 2006 17:47:17 +0000 (17:47 +0000)]
Proxies connections to jabber.org

One program proxies connections to jabber.org, but with no SRV
lookup. It uses pure sockets. The other program reads from a
configuration file the address and port to bind to, using GLib and
GNet.