search for: shouterr_busy

Displaying 5 results from an estimated 5 matches for "shouterr_busy".

2004 Aug 06
1
libshout nonblocking API
...e called before shout_open (no switching back and forth midstream at the moment). unsigned int shout_get_nonblocking(shout_t *self): self-explanatory. Changed functions: shout_get_connected: Will now attempt to complete login if the connection is in progress. May return additional error codes, or SHOUTERR_BUSY if the connection still hasn't finished opening. shout_open: May return SHOUTERR_BUSY as a non-fatal error. In this case, the client should call shout_get_connected() periodically until that function stops returning SHOUTERR_BUSY. shout_send shout_send_raw: May return SHOUTERR_BUSY if they co...
2020 Apr 04
0
[PATCH] nonblocking: remove usleep usage
...p at gmail.com> --- examples/nonblocking.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/nonblocking.c b/examples/nonblocking.c index 8e38a94..2f15b80 100644 --- a/examples/nonblocking.c +++ b/examples/nonblocking.c @@ -70,8 +70,10 @@ int main() if (ret == SHOUTERR_BUSY) printf("Connection pending...\n"); + const struct timespec req = {0, 10 * 1000 * 1000}; + struct timespec rem; while (ret == SHOUTERR_BUSY) { - usleep(10000); + nanosleep(&req, &rem); ret = shout_get_connected(shout); } -- 2.25...
2022 Apr 12
0
Release of libshout, version 2.4.6
...leanup * Added compiler warnings about obsoleted functions and ignored return values * Replaced old shout_set_metadata() with new shout_set_metadata_utf8() * Fixed shout_set_metadata*() sometimes returning SHOUTERR_RETRY (#2328) * Workaround old clients by emulating SHOUTERR_RETRY with SHOUTERR_BUSY (#2316) * Remove our re-implementation of X509_check_host() * Allow to disable building tools (#2331) If you are a downstream maintainer we would like to kindly ask considering updating packages. You can find our news entry at: https://icecast.org/news/libshout-release-2_4_6/ Downloads can b...
2022 Apr 12
0
Release of libshout, version 2.4.6
...leanup * Added compiler warnings about obsoleted functions and ignored return values * Replaced old shout_set_metadata() with new shout_set_metadata_utf8() * Fixed shout_set_metadata*() sometimes returning SHOUTERR_RETRY (#2328) * Workaround old clients by emulating SHOUTERR_RETRY with SHOUTERR_BUSY (#2316) * Remove our re-implementation of X509_check_host() * Allow to disable building tools (#2331) If you are a downstream maintainer we would like to kindly ask considering updating packages. You can find our news entry at: https://icecast.org/news/libshout-release-2_4_6/ Downloads can b...
2008 Aug 30
3
Updated version of patch
Attached is a patch against shout-python-0.2 which does two trivial but very useful things (1) The function "get_connected" is exported so that shout-python becomes usable in nonblocking mode. In the current version of shout-python "open" raises an exception in nonblocking mode. (2) The global interpreter lock is released in the potentially blocking functions