Problem: names weren't explicit

* changed zsock_ready to zsock_pollout
* changed zsock_waiting to zsock_pollin

These names provide more context as to what the functions are checking.

* fixed bug in zsock_pollout