Sockets : Added a function to check if the socket is ready to be read
A timeout is available to wait for x milliseconds before continuing.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>