File: event.rst

package info (click to toggle)
pyroute2 0.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,704 kB
  • sloc: python: 50,245; makefile: 280; javascript: 183; ansic: 81; sh: 44; awk: 17
file content (25 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.. _event:

Generic netlink events protocols
================================

The only available method for the event sockets is `get()` -- it returns
an iterator over broadcasted messages, following the generic pyroute2 API.
Even though the event protocols provide one message per `recv()`.

No manual `bind()` or `discovery()` required -- the event sockets run
these methods authomatically.

Please keep in mind that you have to consume all the incoming messages
in time, otherwise a buffer overflow happens on the socket and the only
way to fix that is to `close()` the failed socket and to open a new one.

ACPI events
-----------

.. automodule:: pyroute2.netlink.event.acpi_event

Disk quota events
-----------------

.. automodule:: pyroute2.netlink.event.dquot