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
pubnub_blocking_io.cpp
- Committer:
- sveljko
- Date:
- 2016-11-10
- Revision:
- 0:d13755cfb705
File content as of revision 0:d13755cfb705:
/* -*- 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; }