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.
 
 
 
 

23 line
671 B

  1. cdef class UDPTransport(UVBaseTransport):
  2. cdef:
  3. bint __receiving
  4. int _family
  5. object _address
  6. cdef _init(self, Loop loop, unsigned int family)
  7. cdef _set_address(self, system.addrinfo *addr)
  8. cdef _connect(self, system.sockaddr* addr, size_t addr_len)
  9. cdef _bind(self, system.sockaddr* addr)
  10. cdef open(self, int family, int sockfd)
  11. cdef _set_broadcast(self, bint on)
  12. cdef inline __receiving_started(self)
  13. cdef inline __receiving_stopped(self)
  14. cdef _send(self, object data, object addr)
  15. cdef _on_receive(self, bytes data, object exc, object addr)
  16. cdef _on_sent(self, object exc, object context=*)