Tidy up cdef
Added poll, timeout to recv_event