Subversion Repositories HomeAutomation

Rev

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

Rev 739 Rev 750
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
-
 
11
    ownerNotifier = None
10
   
12
   
11
    def __init__(self, cfg):
13
    def __init__(self, pktHandler, cfg = None):
12
        global config
14
        self.config = cfg
-
 
15
        self.pktHandler = pktHandler
-
 
16
       
-
 
17
    def setPktHandler(self, pktHandler):
-
 
18
        self.pktHandler = pktHandler
-
 
19
       
-
 
20
    def setIfNotifier(self, ifNotifier):
13
        config = cfg
21
        self.ownerNotifier = ifNotifier
14
   
22
   
15
    def start(self):
23
    def start(self):
16
        pass
24
        pass
17
 
25
 
18
    def stop(self):
26
    def stop(self):
19
        pass
27
        pass
20
 
28
 
21
    def running(self):
29
    def running(self):
22
        pass
30
        pass
23
   
31