dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::service::peer Class Referenceabstract

a client's connection as the service sees it - the service's counterpart of a kernel driver's client: what the client asks lands in ioctl(), its connection's end destroys it More...

#include <dx_service_message.h>

Inheritance diagram for dx::service::peer:

Public Member Functions

virtual size_t ioctl(uint32_t ioctl, const void* in, size_t size_in, void* out, size_t size_out)= 0
 peer(uint32_t pid)
std::vector<uint8_t> reply(const message& request) noexcept
 a checked request answered: ioctl() on its data, the reply bounded by what the request takes back - dx::ioctl::listen, the broadcast's, answers nothing
virtual ~peer()= default

Public Attributes

const uint32_t pid
 the process on the other side, as the OS states it

Detailed Description

a client's connection as the service sees it - the service's counterpart of a kernel driver's client: what the client asks lands in ioctl(), its connection's end destroys it

ioctl() answers what its reply carries, its size; an exception is the reply's result.

Constructor & Destructor Documentation

◆ peer()

dx::service::peer::peer(uint32_t pid)
inline

◆ ~peer()

virtual dx::service::peer::~peer()
virtualdefault

Member Function Documentation

◆ ioctl()

virtual size_t dx::service::peer::ioctl(uint32_t ioctl, const void* in, size_t size_in, void* out, size_t size_out)
pure virtual

Implemented in dx::service::device< super_device_t >::peer, dx::service::driver< driver_t >::peer, and dx::service::stream::device< super_device_t >::peer.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reply()

std::vector<uint8_t> dx::service::peer::reply(const message& request)
inlinenoexcept

a checked request answered: ioctl() on its data, the reply bounded by what the request takes back - dx::ioctl::listen, the broadcast's, answers nothing

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pid

const uint32_t dx::service::peer::pid

the process on the other side, as the OS states it


The documentation for this class was generated from the following file: