Skip to content

Add support for sock_sendto and sock_recvfrom #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pay748 opened this issue Feb 20, 2025 · 1 comment
Closed

Add support for sock_sendto and sock_recvfrom #655

pay748 opened this issue Feb 20, 2025 · 1 comment

Comments

@pay748
Copy link

pay748 commented Feb 20, 2025

Thanks to the developers of the uvloop project, this performance improvement is really exciting. However, when I tested the project with uvloop, I found that the methods sock_sendto and sock_recvfrom are not yet implemented in uvloop. In asyncio, these two methods are supported in python 3.11, and they are frequently used in some frameworks and low-level network function development. I hope uvloop can add support for these two methods. Thanks to the developers of the uvloop project.

` @cython.iterable_coroutine
async def sock_recvfrom(self, sock, bufsize):
raise NotImplementedError

@cython.iterable_coroutine
async def sock_recvfrom_into(self, sock, buf, nbytes=0):
    raise NotImplementedError

@cython.iterable_coroutine
async def sock_sendto(self, sock, data, address):
    raise NotImplementedError`
@fantix
Copy link
Member

fantix commented Apr 16, 2025

Thank you for bringing this up! I'm closing this as a duplicate of #561, and there's a candidate PR already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants