Implemented RNode interface driver

This commit is contained in:
Mark Qvist 2018-04-05 19:12:21 +02:00
parent 0ce144c760
commit 9bfb7ae2d7
6 changed files with 272 additions and 86 deletions

View file

@ -12,10 +12,12 @@ class UdpInterface(Interface):
forward_port = None
owner = None
def __init__(self, owner, bindip=None, bindport=None, forwardip=None, forwardport=None):
def __init__(self, owner, name, bindip=None, bindport=None, forwardip=None, forwardport=None):
self.IN = True
self.OUT = False
self.name = name
if (bindip != None and bindport != None):
self.receives = True
self.bind_ip = bindip