daemon: added link option to configure buffer, added support in pygui to allow configuring buffer
This commit is contained in:
parent
d95c2ec05f
commit
a35e91aeba
8 changed files with 68 additions and 5 deletions
|
@ -457,6 +457,7 @@ class LinkOptions:
|
|||
delay: int = 0
|
||||
dup: int = 0
|
||||
unidirectional: bool = False
|
||||
buffer: int = 0
|
||||
|
||||
@classmethod
|
||||
def from_proto(cls, proto: core_pb2.LinkOptions) -> "LinkOptions":
|
||||
|
@ -471,6 +472,7 @@ class LinkOptions:
|
|||
delay=proto.delay,
|
||||
dup=proto.dup,
|
||||
unidirectional=proto.unidirectional,
|
||||
buffer=proto.buffer,
|
||||
)
|
||||
|
||||
def to_proto(self) -> core_pb2.LinkOptions:
|
||||
|
@ -485,6 +487,7 @@ class LinkOptions:
|
|||
delay=self.delay,
|
||||
dup=self.dup,
|
||||
unidirectional=self.unidirectional,
|
||||
buffer=self.buffer,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue