#include <pipe.h>
|
void | write (const void *buffer, unsigned int nbytes) |
|
ssize_t | read (void *buffer, unsigned int &nbytes) |
|
void | signal () |
|
|
| Pipe (void(*handler)(const void *data, void *buffer, unsigned int nbyte), const void *data) |
|
| ~Pipe () |
|
Definition at line 36 of file pipe.h.
◆ Pipe()
Pipe::Pipe |
( |
void(*)(const void *data, void *buffer, unsigned int nbyte) |
handler, |
|
|
const void * |
data |
|
) |
| |
|
private |
◆ ~Pipe()
◆ read()
ssize_t Pipe::read |
( |
void * |
buffer, |
|
|
unsigned int & |
nbytes |
|
) |
| |
◆ signal()
Simply write one single byte into the pipe. This is a shortcut if there's really no data to transport, but to activate the handler.
Definition at line 83 of file pipe.cpp.
References _fd_write, and write().
◆ write()
void Pipe::write |
( |
const void * |
buffer, |
|
|
unsigned int |
nbytes |
|
) |
| |
Write some data into the communication pipe.
- Parameters
-
buffer | The raw data to write. |
nbytes | The number of bytes to write from the buffer. |
Definition at line 63 of file pipe.cpp.
References _fd_write, and write().
Referenced by signal(), and write().
◆ BusDispatcher
◆ _data
const void* DBus::Pipe::_data |
|
private |
◆ _fd_read
◆ _fd_write
int DBus::Pipe::_fd_write |
|
private |
◆ _handler
void(* DBus::Pipe::_handler) (const void *data, void *buffer, unsigned int nbyte) |
|
private |
The documentation for this class was generated from the following files: