Updated sockets to use _receive() instead of _pending().