Skip to content
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

Add support for sock_sendto and sock_recvfrom #655

Open
pay748 opened this issue Feb 20, 2025 · 0 comments
Open

Add support for sock_sendto and sock_recvfrom #655

pay748 opened this issue Feb 20, 2025 · 0 comments

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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant