-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start using high-performance uv_udp_t handle again
* Upgrade to libuv v1.28.0. This is the new minimal supported libuv version. * Switch from using uv_poll_t to uv_udp_t. This leads to significant performance improvements.
- Loading branch information
Showing
8 changed files
with
501 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
cdef class UDPTransport(UVBaseTransport): | ||
cdef: | ||
object sock | ||
int sock_family | ||
int sock_proto | ||
int sock_type | ||
UVPoll poll | ||
object address | ||
object buffer | ||
bint __receiving | ||
int _family | ||
|
||
cdef _init(self, Loop loop, object sock, object r_addr) | ||
cdef _init(self, Loop loop, unsigned int family) | ||
|
||
cdef _on_read_ready(self) | ||
cdef _on_write_ready(self) | ||
cdef _connect(self, system.sockaddr* addr, size_t addr_len) | ||
|
||
@staticmethod | ||
cdef UDPTransport new(Loop loop, object sock, object r_addr) | ||
cdef _bind(self, system.sockaddr* addr, bint reuse_addr) | ||
cdef open(self, int family, int sockfd) | ||
cdef _set_broadcast(self, bint on) | ||
|
||
cdef inline __receiving_started(self) | ||
cdef inline __receiving_stopped(self) | ||
|
||
cdef _send(self, object data, object addr) | ||
|
||
cdef _on_receive(self, bytes data, object exc, object addr) | ||
cdef _on_sent(self, object exc) |
Oops, something went wrong.
"expected"