Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 1.09 KB

doc_raw.md

File metadata and controls

82 lines (52 loc) · 1.09 KB

Header file raw.hpp

#include <canary/basic_endpoint.hpp>

namespace canary
{
    class raw;
}

Class canary::raw

class raw
{
public:
    int type() const noexcept;

    int protocol() const noexcept;

    int family() const noexcept;

    using endpoint = basic_endpoint<canary::raw>;

    using socket = net::basic_raw_socket<raw>;
};

Encapsulates flags necessary for creation of raw CAN sockets.

Function canary::raw::type

int type() const noexcept;

Obtain an identifier for the protocol type.


Function canary::raw::protocol

int protocol() const noexcept;

Obtain an identifier for the protocol.


Function canary::raw::family

int family() const noexcept;

Obtain an identifier for the address family.


Type alias canary::raw::endpoint

using endpoint = basic_endpoint<canary::raw>;

CAN endpoint type, represents a CAN interface (e.g. vcan0)


Type alias canary::raw::socket

using socket = net::basic_raw_socket<raw>;

Raw CAN socket type