Registry Mirror
Skip to content

Change IAsyncResult APIs in System.Net.Sockets to wrap Task APIs #43845

Closed

Description

@geoffkizer

We should change all the old IAsyncResult APIs in System.Net.Sockets to simply wrap the equivalent Task APIs, as we do in general.

Unfortunately, some of the current Task APIs actually use these IAsyncResult APIs. There is planned work to change this.

Specifically, we should do this for the following Socket APIs:

And these UdpClient APIs:

- [ ] [Begin/End]Send
- [ ] [Begin/End]Receive

EDIT (by @antonfirsov )

As per #43845 (comment), we don't need to do anything with UdpClient.

Activity

  1. added
    untriaged
    on Oct 26, 2020
  2. removed
    untriaged
    on Oct 26, 2020
  3. added this to the 6.0.0 milestone on Oct 26, 2020
  4. added
    enhancement
    on Oct 27, 2020
  5. added
    help wanted
    on Nov 21, 2020
  6. antonfirsov commented on Feb 5, 2021

    @antonfirsov
    Contributor

    And these UdpClient APIs: [...]

    @geoffkizer I'm not sure what do you mean by those work items. UdpClient's [Begin/End][Receive/Send] methods are thin wrappers over the Socket counterparts. You say it's worth to refactor them to wrap their own Task-based methods instead?

  7. geoffkizer commented on Feb 5, 2021

    @geoffkizer
    ContributorAuthor

    UdpClient's [Begin/End][Receive/Send] methods are thin wrappers over the Socket counterparts. You say it's worth to refactor them to wrap their own Task-based methods instead?

    No, you're right, I don't think we actually need to refactor these. I probably didn't look closely at what they do when I added them to the list.

  8. karelz commented on May 13, 2021

    @karelz
    Member

    Seems to be finished, closing.

  9. ghost locked as resolved and limited conversation to collaborators on Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Socketsenhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions