No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

49 líneas
1.2 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. object context
  9. # Added to enable current UDPTransport implementation,
  10. # which doesn't use libuv handles.
  11. bint _has_handle
  12. # All "inline" methods are final
  13. cdef inline _start_init(self, Loop loop)
  14. cdef inline _abort_init(self)
  15. cdef inline _finish_init(self)
  16. cdef inline bint _is_alive(self)
  17. cdef inline _ensure_alive(self)
  18. cdef _error(self, exc, throw)
  19. cdef _fatal_error(self, exc, throw, reason=?)
  20. cdef _warn_unclosed(self)
  21. cdef _free(self)
  22. cdef _close(self)
  23. cdef class UVSocketHandle(UVHandle):
  24. cdef:
  25. # Points to a Python file-object that should be closed
  26. # when the transport is closing. Used by pipes. This
  27. # should probably be refactored somehow.
  28. object _fileobj
  29. object __cached_socket
  30. # All "inline" methods are final
  31. cdef _fileno(self)
  32. cdef _new_socket(self)
  33. cdef inline _get_socket(self)
  34. cdef inline _attach_fileobj(self, object file)
  35. cdef _open(self, int sockfd)