Skip to content

Add support for sock_sendto and sock_recvfrom #655

Closed as duplicate of#561
Closed as duplicate of#561
@pay748

Description

@pay748

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions