Subversion Repositories HomeAutomation

Rev

Rev 750 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 750 Rev 800
1
###########################################################
1
###########################################################
2
#
2
#
3
# IP/UDP interface, connects with can through an
3
# IP/UDP interface, connects with can through an
4
# ethernet node
4
# ethernet node
5
#
5
#
6
###########################################################
6
###########################################################
7
 
7
 
8
class NodeIfUDP:
8
class NodeIfUDP:
9
    config = []
9
    config = []
10
    pktHandler = None
10
    pktHandler = None
11
    ownerNotifier = None
11
    ownerNotifier = None
12
   
12
   
13
    def __init__(self, pktHandler, cfg = None):
13
    def __init__(self, pktHandler, cfg = None):
14
        self.config = cfg
14
        self.config = cfg
15
        self.pktHandler = pktHandler
15
        self.pktHandler = pktHandler
16
       
16
       
17
    def setPktHandler(self, pktHandler):
17
    def setPktHandler(self, pktHandler):
18
        self.pktHandler = pktHandler
18
        self.pktHandler = pktHandler
19
       
19
       
20
    def setIfNotifier(self, ifNotifier):
20
    def setIfNotifier(self, ifNotifier):
21
        self.ownerNotifier = ifNotifier
21
        self.ownerNotifier = ifNotifier
22
   
22
   
23
    def start(self):
23
    def start(self):
24
        pass
24
        pass
25
 
25
 
26
    def stop(self):
26
    def stop(self):
27
        pass
27
        pass
28
 
28
 
29
    def running(self):
29
    def running(self):
30
        pass
30
        pass
31
   
31