Sockets : Added a function to check if the socket is ready to be read

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