'set a handler function on_ready(socket, size) to be called when
data is available for reading at this socket'

def set_on_ready_to_recv(self, on_ready):

    self.receiving.on_data = (lambda channel, size: on_ready(self, size))
