Add get-timeout method to API for non-blocking operation
The blocking nature of sleep() in the libshout api means that users cannot wait on other events (sockets via select(), etc.) while waiting for icecast to consume data in a single threaded but multi-task process. The request is that a method be added to the api, perhaps called get_sleep_time() , that simply returns a float indicating how much time should be waited. The user can then use this timeout in a select() call to wait while responding to other events. As we're using the Perl XS module, it's important that this functionality be mirrored in that interface as well.