Commit Graph

200 Commits

Author SHA1 Message Date
Ian Gulliver
6c145bf259 Ignore test binary 2015-06-14 20:50:31 +00:00
Ian Gulliver
885e7e8715 New makefile target to run valgrind with the correct options 2015-06-14 07:39:37 +00:00
Ian Gulliver
b8204944c9 Add supressions for valgrind due to libcurl being junk. 2015-06-14 07:38:16 +00:00
Ian Gulliver
da865c3f54 Add missing include 2015-06-14 00:33:10 +00:00
Ian Gulliver
43b59c713a Minor fixes. 2015-06-14 00:21:32 +00:00
Ian Gulliver
71a972688c Build fixes for linux. 2015-06-13 20:59:31 +00:00
Ian Gulliver
2ea3dcee71 More portable random number generation. 2015-06-13 20:56:36 +00:00
Ian Gulliver
33579856c8 Untested code for polling instances. 2015-06-12 19:57:55 -07:00
Ian Gulliver
d94b3d08ae Add passthrough pointer, better Makefile. 2015-06-10 19:50:26 -07:00
Ian Gulliver
b9564576d3 Decode incoming message JSON. 2015-06-09 21:32:34 -07:00
Ian Gulliver
8d9683a00c Callback framework, message callback. 2015-06-07 15:30:08 -07:00
Ian Gulliver
e24794b229 Remove all the pin support for now. 2015-06-07 14:45:21 -07:00
Ian Gulliver
3995a4d0d9 Don't send pins until a subscription is established, since unpin events never come in that case. 2015-06-07 14:16:54 -07:00
Ian Gulliver
190e1eb182 onpin support, but onunpin never fires, so mostly useless right now. 2015-06-07 10:14:15 -07:00
Ian Gulliver
3f40ddb037 Add a big nasty hack to short-circuit lots of event transmission until we get channels working. 2015-06-06 19:37:04 -07:00
Ian Gulliver
45d75172bf Handle incoming message events. Fix unsubscribe. 2015-06-06 19:17:42 -07:00
Ian Gulliver
75853c47ac Implement the cached message & pin fetching functions. 2015-06-06 17:28:49 -07:00
Ian Gulliver
27a7343fed Implement subscription tracking, cosmo_unsubscribe() 2015-06-06 17:15:32 -07:00
Ian Gulliver
2d556844b5 API TODO list. 2015-06-06 16:05:11 -07:00
Ian Gulliver
b257b23e8a Add cosmo_current_profile() 2015-06-06 15:32:13 -07:00
Ian Gulliver
897e13010d Standardize names, modulo style, with JS. 2015-06-06 14:59:08 -07:00
Ian Gulliver
b66b7cc083 Add cosmo_send_message() 2015-06-06 14:56:23 -07:00
Ian Gulliver
6fd030e0bc Move everything into cosmopolite.c 2015-06-06 14:43:40 -07:00
Ian Gulliver
db7f9bdd9b Move more curl opts to be global. 2015-06-06 14:34:03 -07:00
Ian Gulliver
22e6ff8090 Makefile, better gitignore 2015-06-06 14:32:52 -07:00
Ian Gulliver
d9e3bd727e Keep a curl instance around to re-use the connection. 2015-06-06 10:54:58 -07:00
Ian Gulliver
fffbf0f30c Start of a public header. 2015-06-06 10:44:46 -07:00
Ian Gulliver
f055809a22 Make URL a parameter. 2015-06-06 10:39:33 -07:00
Ian Gulliver
d596ff1444 Retry and backoff working properly. 2015-06-05 23:20:07 -07:00
Ian Gulliver
f8c40a65c5 Response parsing and RPC retries. 2015-06-03 22:45:07 -07:00
Ian Gulliver
28c1f9612c Actually send commands! 2015-06-03 22:24:07 -07:00
Ian Gulliver
c4ed549342 Move to condition variable communication. 2015-06-03 20:53:27 -07:00
Ian Gulliver
9e4cefb27e Simplified ownership. 2015-06-03 20:32:00 -07:00
Ian Gulliver
f5cff306de Start some sanity refactoring. 2015-06-03 20:15:31 -07:00
Ian Gulliver
872426aa78 Store and parse return values, partially handle errors. 2015-06-02 22:53:15 -07:00
Ian Gulliver
b2d595322c Start of C client library. 2015-06-02 22:21:28 -07:00
Ian Gulliver
1e6da9504a Set request and response content type to json. 2015-05-31 21:23:45 -07:00
Ian Gulliver
3fa24f803d Switch to idiomatic JS Event framework.
Remove Unity debugging, as we no longer have interested clients.
2015-05-31 18:00:07 -07:00
Ian Gulliver
014fde230a Merge branch 'master' of github.com:flamingcowtv/cosmopolite 2015-05-31 16:48:07 -07:00
Ian Gulliver
7e3af49303 Fix test race condition in Profile merge. 2015-05-31 10:07:07 -07:00
Ian Gulliver
eb536ae20a Change XMLHttpRequest call ordering to satisfy firefox. 2014-11-15 17:30:02 -08:00
Ian Gulliver
1ca44a764e Log chaos monkey 503s 2014-11-13 13:46:21 -08:00
Ian Gulliver
0aa1d6c41c Attach a random 32-bit unsigned integer to each message for game protocols. 2014-11-11 15:56:31 -08:00
Ian Gulliver
72c7453091 Style fixes. 2014-06-27 23:17:33 -07:00
Ian Gulliver
f12d8cb8ea Keep up with QUnit API change. 2014-06-27 23:15:53 -07:00
Ian Gulliver
f675715317 Bugfixes for "me" ACL. 2014-06-21 17:29:10 -07:00
Ian Gulliver
eacb6bd7ba Use "me" ACL in debug interface. 2014-06-21 12:21:23 -07:00
Ian Gulliver
88c49d6371 Log instance IDs in internal channel callbacks. 2014-06-21 00:15:01 -07:00
Ian Gulliver
368c704b81 Translate events in pre-channel subscribe responses. 2014-06-19 23:36:47 -07:00
Ian Gulliver
3c452dabf3 Add message translation layer than can handle "me" as an ACL. 2014-06-19 23:14:26 -07:00