Displaying 2 results from an estimated 2 matches for "shout_get_nonblock".
2004 Aug 06
1
libshout nonblocking API
...the following changes to the libshout API to support
nonblocking I/O:
New functions:
int shout_set_nonblocking(shout_t *self, unsigned int nonblocking):
Instructs libshout to use nonblocking I/O. Must be 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-...
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