You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.1 KiB

  1. cdef class UVHandle:
  2. cdef:
  3. uv.uv_handle_t *_handle
  4. Loop _loop
  5. readonly _source_traceback
  6. bint _closed
  7. bint _inited
  8. # Added to enable current UDPTransport implementation,
  9. # which doesn't use libuv handles.
  10. bint _has_handle
  11. # All "inline" methods are final
  12. cdef inline _start_init(self, Loop loop)
  13. cdef inline _abort_init(self)
  14. cdef inline _finish_init(self)
  15. cdef inline bint _is_alive(self)
  16. cdef inline _ensure_alive(self)
  17. cdef _error(self, exc, throw)
  18. cdef _fatal_error(self, exc, throw, reason=?)
  19. cdef _warn_unclosed(self)
  20. cdef _free(self)
  21. cdef _close(self)
  22. cdef class UVSocketHandle(UVHandle):
  23. cdef:
  24. # Points to a Python file-object that should be closed
  25. # when the transport is closing. Used by pipes. This
  26. # should probably be refactored somehow.
  27. object _fileobj
  28. object __cached_socket
  29. # All "inline" methods are final
  30. cdef _fileno(self)
  31. cdef _new_socket(self)
  32. cdef inline _get_socket(self)
  33. cdef inline _attach_fileobj(self, object file)
  34. cdef _open(self, int sockfd)