Recent blog entries for argaldo

Relase soon, release often?

This week is full of work at the office, "Oracles", "iAS", "Collab Suites" and so on... (this is going to kill me), and I don't have time to finish my Dbus protocol implementation, although it is almost 75% done.

I hope this weekend I will be able to stay in front of the laptop some time and get JDbus a step forward, where it is able to marshall (from a set of object) and unmarshall (to a set of objects) Dbus messages.

I'm also looking to do some images dissecting the protocol bytes of several message type wich will lead upcoming specification readers to understand how it DBus protocol works faster.
27 Aug 2005 (updated 27 Aug 2005 at 13:34 UTC) »
Implementing

Afer a couple of days reading every word in the specification and being almost sure I got it all, i'm now implementing DBus protocol. I've started with the marshalling part, that would allow me to send messages to the bus and get responses to implement the unmarshalling part.

Here you can see the protocol learning process;-))

http://www.flickr.com/photos/argaldo/37582728/
It's on the way

Some progress done, I've implemented the SASL Authentication State Machine. It currently only supports EXTERNAL authentication, but the foundation is done to allow the implementation of other auth mechanisms. It successfully authenticates to a dbus instance.

Now it's time to implement the binary part of the protocol, the marshaller, unmarshaller, dbus types and the protocol dissecting/composing part.

More work on the way ;-)
Feasibility

Today i've found another implementation of unix sockets, this one from the gnu java team, http://www.nfrese.net/software/gnu_net_local/overview.html.

Both implementations, the one i posted yesterday and this one, work fine and they have almost the same features wich allowed me to get through dbus authentication mechanism and get an authenticated session with whom I will be able to send/receive messages (or at least it seems).

So, this project is feasible and the only native part is reduced only to unix domain sockets.
20 Aug 2005 (updated 20 Aug 2005 at 00:41 UTC) »
Research, research

Today i've done some research looking for dbus access solutions in Java. I found this Java binding: http://freedesktop.org/~kidcrash/libdbus-java/libdbus-java.tar.gz , this library wraps libdbus in Linux/Unix systems.

I'm still thinking in developing a pure Java implementation of the dbus protocol. As dbus uses Unix domain sockets and Java currently doesn't support them I must have some JNI native implementation of Unix sockets within the project. I also found jlirc project wich has implemented Unix domain sockets: http://jlirc.sourceforge.net/.

I will be testing this weekend that implementation and have a look at dbus protocol to have a broader look at the possiblities of the project.

I'm planning to implement a dbus client in Java.

I haven't decided yet if this will be a pure Java client or a JNI wrapper of the C freedesktop's implementation.

I wish this diary to be the progress log of this project.

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!