The Pubnub C-core library. It's home is on https://github.com/pubnub/c_core, this is a copy

Dependents:   Pubnub_c_core_mbed2_pal Pubnub_c_core_mbed2_pal Pubnub_c_core_mbed2_pal2

Revision:
0:d13755cfb705
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pubnub_blocking_io.cpp	Thu Nov 10 22:20:11 2016 +0000
@@ -0,0 +1,27 @@
+/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
+#include "pubnub_blocking_io.h"
+
+#include "pubnub_assert.h"
+#include "pubnub_internal.h"
+
+
+
+
+int pubnub_set_non_blocking_io(pubnub_t *p)
+{
+    if (PUBNUB_BLOCKING_IO_SETTABLE) {
+        p->options.use_blocking_io = false;
+        return 0;
+    }
+    return -1;
+}
+
+
+int  pubnub_set_blocking_io(pubnub_t *p)
+{
+    if (PUBNUB_BLOCKING_IO_SETTABLE) {
+        p->options.use_blocking_io = true;
+        return 0;
+    }
+    return -1;
+}