From c1029cbe9e105c5adbcf69306d30a29ebef8dff1 Mon Sep 17 00:00:00 2001 From: montag451 Date: Thu, 19 Dec 2019 13:41:21 +0100 Subject: [PATCH] Update README (documents new multi-queue method) --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index a99a913..05c51b3 100644 --- a/README.rst +++ b/README.rst @@ -62,6 +62,12 @@ To bring down the device:: tun.down() +To enable/disable the queue associated with the device (works only if +it has been created with IFF_MULTI_QUEUE):: + + tun.mq_attach() # enable the queue + tun.mq_attach(False) # disable the queue + To read/write to the device, use the methods ``read(size)`` and ``write(buf)``::