Using MessagePack with Android

(Hopefully) FINAL UPDATE msgpack : 0.6.8 works on Android without any problems msgpack-rpc : 0.7.0 works on Android with one caveat. Specifically, you need to add the following to onCreate for API Level 8 (Android 2.2.1), and possibly lower: java.lang.System.setProperty(“java.net.preferIPv4Stack”, “true”); java.lang.System.setProperty(“java.net.preferIPv6Addresses”, “false”); due to this bug. If you want to see a simple example, … Read more

How do I read and write with msgpack?

The Python docs seem not to be so good, so here is my try. Installation pip install msgpack Read and Write msgpack #!/usr/bin/env python # -*- coding: utf-8 -*- import msgpack # Define data data = { “a list”: [1, 42, 3.141, 1337, “help”], “a string”: “bla”, “another dict”: {“foo”: “bar”, “key”: “value”, “the answer”: … Read more