Skip to content

impl Stream/Sink for UdpSocket #276

@canndrew

Description

@canndrew

I'd like to use a UdpSocket as a Stream/Sink of (SocketAddr, Vec<u8>). Is there a reason these impls don't already exist? I'm aware I can use Framed, but I'd prefer not to have to write a UdpCodec for converting bytes to bytes. IMHO UdpCodec belongs in some higher-level library and tokio-core should just provide a UDP API for sending/receiving packets of bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions