Hi,
Quoting Anton Lauridsen <anton.lauridsen@xxxxxxxxx>:
Hi
I've pulled the latest version out of the trunk (r 111), The disco
implementation looks to be very much like a simple skeleton, I need a
better implementation than what I found, so I have started to implement
an improved version.
Yes, it's far from being complete.
For my purposes I want to use XEP-0030 to query the connecting client
(I'm working in parallel on an implementation of XEP-0009 Jabber-RPC)
for both the client and the server.
I've implemented and registered a ServerEventHandler on the
ConfigManager, and want to query the connecting client in the
"handleClientConnected" call back. This works perfectly. In the
handleClientConnected method I create an IQ stanza. As I read and
understand XEP-0030 I MUST supply the session key in the id attribute of
the IQ stanza, unfortunately I cannot find any means of retrieving the
session key. it appears to me as if there is no way to retrieve the
session key related to a connected client and/or JID, Is there something
I have overlooked?
I'm not sure what you mean by 'session key'. The id attribute just
takes a unique id like the one generated by
gloox::ClientBase::getID(). You could keep a dummy instance of
ClientBase around for that or just copy the code. There's no way to
create an id in glooxd itself at this point.
cheers,
Jakob