Skip to content

Transform TcpListener into Stream of connections #981

Closed
@piegamesde

Description

@piegamesde

There is TcpListener::incoming that provides this functionality, but it has a lifetime. I cannot simply pass the stream around and manipulate it, because it has 'a lifetime bound to the TcpListener. An alternative that takes over ownership would be appreciated.

Note that this is symmetric to the stdlib, where the same API suffers from the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions