summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2013-08-09Merge branch 'gabble-0.18'Simon McVittie1-5/+0
2013-08-09Fix examples' and tests' dependenciesSimon McVittie1-5/+0
All Automake products automatically depend on their SOURCES and everything identifiable as a file in their LDADD, unless you set their DEPENDENCIES, which take precedence (and have "replace", not "add", semantics). As a result, setting DEPENDENCIES is actually harmful here: it makes the tests and examples not depend on their own source code! For the one test that has non-trivial extra dependencies, use EXTRA_x_DEPENDENCIES, which has the desired semantics. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67953 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Vivek Dasmohapatra <vivek@collabora.co.uk>
2013-08-09keep the coding-style checker happySimon McVittie1-2/+2
2013-06-26dump-certificates: Manually provide server to connect toTobias Mueller1-2/+14
For some reason some Google enabled domains have their DNS not set up correctly. But also working domains like vrfy.org do not work will with this tool. In order to make it connect to a XMPP server, the servername and the port can now be given as parameters. https://bugs.freedesktop.org/show_bug.cgi?id=64190
2013-03-21Make examples/Makefile.am indentation consistentWill Thompson1-5/+5
2013-03-21dump-certificates: check (and fix) coding styleWill Thompson2-2/+4
2013-03-18examples: link against gnutlsDominique Leuenberger1-0/+2
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61792 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-02-22receive-messages example: add a --resource parameterWill Thompson1-2/+5
2013-01-22examples: add --ignore-ssl-errorsWill Thompson2-6/+52
Just for the sake of people testing against localhost. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2013-01-22dump-certificates: remove "bye, bye" from outputWill Thompson1-1/+0
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2012-11-14dump-certificates: don't use real passwordsWill Thompson1-3/+6
2012-11-14examples: Add example which dumps recieved TLS certificates to stdoutStef Walter2-0/+180
https://bugs.freedesktop.org/show_bug.cgi?id=36207
2012-04-04add missing config.h includesGuillaume Desmottes4-0/+16
2012-02-06Make #include <wocky/wocky.h> the only legal import.Will Thompson4-12/+2
2011-03-22examples: use wocky_session_new_with_connectionJonny Lamb2-2/+2
wocky_session_new() was renamed to this in my meta-porter branch. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-03-17examples: correctly publish 'chat' presenceWill Thompson1-1/+3
2011-03-17Add a simple example of receiving incoming messages.Will Thompson2-0/+200
2011-03-17Remove connect example.Will Thompson2-438/+1
The vast, vast majority of this example dealt with connecting before the connector existed. Now it does, that part's unnecessary—it's just a poor clone of the connector—and the remainder is subsumed by send-message.
2011-03-17Add a simple example of sending a message.Will Thompson2-0/+143
2010-11-30examples/connect: always call wocky_init().Will Thompson1-1/+1
The previous fix, in d0977e8, only called wocky_init() on one branch. Thus, the example worked in 'connector' mode, but not in 'raw' mode (the default)... We should just call it up-front alongside g_type_init().
2010-09-14Update examples and tests to new APIwocky-0.10.0Cosimo Cecchi3-3/+3
2010-08-19Fix out-of-tree builds for examples and tests with an explicit include to ↵Adam Conrad1-0/+2
wocky's generated headers
2010-07-22Update tests to the new API.Cosimo Cecchi3-3/+3
2010-06-15fd.o #27488: wocky_connector_connect_finish, _register_finish: put GError lastSimon McVittie2-2/+2
This is more conventional, and (eventually) nicer for bindings. Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2010-06-08Properly use is_secure argument in wocky_auth_registry_start_auth_async.Eitan Isaacson1-2/+2
2010-05-04Default WockyAuthRegistry upon construction.Eitan Isaacson3-8/+4
New WockyAuthRegistry arg in both wocky_connector_new() and wocky_sasl_auth_new(). If NULL is passed in either, the default WockyAuthRegisty is used.
2010-05-04Added WockyAuthRegistry.Eitan Isaacson1-1/+5
WockyAuthRegistry selects the authentication mechanism based on it's available handlers, and arbitrates challenge/responses between the handler and the connector (via Wocky[Sasl|Jabber]Auth). Got rid of WOCKY_SASL_AUTH_ERROR* replaced with WOCKY_AUTH_ERROR
2010-04-20Rename WockyXmppNode to WockyNodeSjoerd Simons1-7/+7
2010-04-20Use wocky_stanza_get_top_node instead of ->nodeSjoerd Simons1-8/+16
2010-04-20Add a namespace argument to wocky_stanza_newSjoerd Simons1-2/+1
2010-04-20Rename WockyXmppStanza to WockyStanzaSjoerd Simons1-5/+5
2009-10-05Example connect program was missing wocky_init() call, prevented testing.Vivek Dasmohapatra1-0/+2
2009-09-11Update example connect program to new API for adding CAs.Vivek Dasmohapatra1-1/+1
2009-09-10Update example to conform to new wocky_tls_session_new API.Vivek Dasmohapatra1-1/+1
2009-08-25examples/Makefile.am: add WOCKY_CFLAGS to AM_CFLAGSGuillaume Desmottes1-0/+1
This allow to build examples when running distcheck.
2009-08-12Make email a settable parameter in the connector instead of a mandatory param.Vivek Dasmohapatra1-2/+3
2009-08-12Example registration and unregistration binaries.Vivek Dasmohapatra3-1/+170
2009-08-04Use local wocky_tls_* instead of g_tls_* and gio instead of gnio.Vivek Dasmohapatra1-5/+5
2009-08-04Memory leak in example connect.c program.Vivek Dasmohapatra1-0/+1
2009-08-04Add ID paramater to stream open methods (needed for server stream open)Vivek Dasmohapatra1-3/+3
2009-08-04Store and return the XMPP Stream Session IDVivek Dasmohapatra1-4/+13
The XMPP Session ID from the server stream open is needed for some client actions (including old-style Jabber auth): Make it a standard connector return item.
2009-07-14Removed header signature for dead function wocky_connector_new_fullVivek Dasmohapatra1-1/+1
Allow resource to be set in wocky_connector_new as it is CONSTRUCT_ONLY now. Update example connect,c to match new API.
2009-07-14Return jid received from server in _finish call.Vivek Dasmohapatra1-2/+4
Update example code for new _finish signature.
2009-07-14Update example to match new API signatures.Vivek Dasmohapatra1-7/+3
2009-07-14Use new wocky_connector_new constructor.Vivek Dasmohapatra1-6/+3
Minor debugging tidyups.
2009-07-14whitespace cleanup.Vivek Dasmohapatra1-1/+1
2009-07-14Use g_object_new now that wocky_connector_new is gone.Vivek Dasmohapatra1-1/+3
2009-07-14Add command line parameter to choose 'raw' vs 'connector' XMPP connect.Vivek Dasmohapatra1-14/+18
Add code for 'connector' XMPP connect using wocky connector object.
2009-07-14First (working?) draft of connector with standard async/finishVivek Dasmohapatra1-8/+43
connect mechanism and updated exmaple connect script.
2009-06-01Propertify the sasl auth user, password, server and connection parametersSjoerd Simons1-13/+2
The username-requested and password-requested were usually just annoying for users of the API and didn't help much as the only authentication mechanisms that are currently implemented always need a username/password anyway. Also moved server and connection up into the constructor as they should be static anyway.