ons 2003-03-05 klockan 15.07 skrev Trent Melcher: > Mikael > > Thanks, looks good. An example would be great, as per my original post all > I need it to connect to the server shoot out a message to a specific user > and disconnect. REally basic stuff probably, just havent dug into the guts > of building building the code to do it yet.
Hi! I hacked up a little snippet that you compile with: gcc -o jabber-send `pkg-config --cflags --libs loudmouth-1.0` jabber-send.c You need loudmouth from CVS. http://people.codefactory.se/~micke/loudmouth/jabber-send.html Later when I add support for blocking calls this will be even simpler since you don't need the callbacks. You run it with: jabber-send -s <server> -u <username> -p <password> -m <message> -t <recipient> [--port <port>] [-r <resource>] Hope it helps. Regards, Mikael Hallendal -- Mikael Hallendal [EMAIL PROTECTED] CodeFactory AB http://www.codefactory.se/ Cell: +46 (0)709 718 918 _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
