Skip to content

Adding DCCP support #350

@onestay

Description

@onestay

I would like to add DCCP support. It is currently only available on Linux. It would basically only involve exposing the Type, Protocol and some socket options listed here. Would this be something of interest?

Currently I'm proposing to just add something like this

    #[cfg(target_os = "linux")]
    /// Type corresponding to `SOCK_DCCP`
    /// 
    /// Used for the DCCP protocol
    pub const DCCP: Type = Type(sys::SOCK_DCCP);

and

#[cfg(target_os = "linux")]
    /// Protocol corresponding to `DCCP`
    pub const DCCP: Protocol = Protocol(sys::IPPROTO_DCCP);

In addition I'd propose adding the socket options prefixed with dccp_. So for example the socket option DCCP_SOCKOPT_SERVICE could be dccp_set_service() and dccp_service()

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