aboutsummaryrefslogtreecommitdiff
path: root/ouroboros/event.py
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-03-04 21:26:43 +0100
committerDimitri Staessens <dimitri@ouroboros.rocks>2026-03-07 15:27:04 +0100
commit7a4c37e8b673328dda59cec11ab9dce66c22a312 (patch)
treed2a05d2fa022d97ba79d8af2d32ec9e7cc3bd9e1 /ouroboros/event.py
parent62924a033cb2a0130cc6a072e03590f8eec5ac72 (diff)
downloadpyouroboros-7a4c37e8b673328dda59cec11ab9dce66c22a312.tar.gz
pyouroboros-7a4c37e8b673328dda59cec11ab9dce66c22a312.zip
ouroboros: Add IRM wrapper
Add ouroboros.irm module wrapping the Ouroboros IRM C API, providing Python interfaces for IPCP lifecycle (create, destroy, bootstrap, enroll, connect), name management (create, destroy, register, list), and program/process binding. Split the monolithic CFFI build into separate _ouroboros_dev_cffi and _ouroboros_irm_cffi modules, each linking only its required library. Also includes: - ouroboros.cli module with higher-level wrappers mirroring CLI tools - FRCT flag support (set/get) in the Flow API - FlowPeer event type in FEventType - QoS defaults updated to match ouroboros source - Bug fixes: flow_set_snd_timeout typo, flow_set_flags calling convention, FlowSet name mangling, fqueue_type return type - .gitignore, copyright updates, version bump to 0.23.0
Diffstat (limited to 'ouroboros/event.py')
-rw-r--r--ouroboros/event.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ouroboros/event.py b/ouroboros/event.py
index b707c1b..ee0127e 100644
--- a/ouroboros/event.py
+++ b/ouroboros/event.py
@@ -1,7 +1,7 @@
#
-# Ouroboros - Copyright (C) 2016 - 2020
+# Ouroboros - Copyright (C) 2016 - 2026
#
-# Python API for applications
+# Python API for Ouroboros
#
# Dimitri Staessens <dimitri@ouroboros.rocks>
#
@@ -20,7 +20,7 @@
#
from ouroboros.dev import *
-from ouroboros.qos import _fl_to_timespec
+from ouroboros.dev import _fl_to_timespec
# async API
@@ -34,6 +34,7 @@ class FEventType(IntFlag):
FlowUp = lib.FLOW_UP
FlowAlloc = lib.FLOW_ALLOC
FlowDealloc = lib.FLOW_DEALLOC
+ FlowPeer = lib.FLOW_PEER
class FEventQueue:
@@ -101,7 +102,7 @@ class FlowSet:
if self.__set is ffi.NULL:
raise ValueError
- if lib.fset_add(self.__set, flow._Flow___fd) != 0:
+ if lib.fset_add(self.__set, flow._Flow__fd) != 0:
raise MemoryError("Failed to add flow")
def zero(self):