Update README (documents new multi-queue method)
This commit is contained in:
1 parent
b7e8acba10
commit
c1029cbe9e
1 file changed
+6
@@ -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)``::
|
||||
|
||||
|
||||
Reference in new issue
Block a user