示例#1
0
文件: pof_01.py 项目: voidcc/PCTRL
 def __init__ (self, port = 6633, address = '0.0.0.0'):
     Task.__init__(self)
     self.port = int(port)
     self.address = address
     self.started = False
 
     core.addListener(pox.core.GoingUpEvent, self._handle_GoingUpEvent)
示例#2
0
文件: peer.py 项目: voidcc/PCTRL
 def __init__(self, port = 2555, address = '0.0.0.0'):
     Task.__init__(self)
     self.port = port
     self.address = address
     self.started = False
     self.con = None
 
     core.addListener(pox.core.GoingUpEvent, self._handle_GoingUpEvent)
示例#3
0
    def __init__(self, port=2555, address='0.0.0.0'):
        Task.__init__(self)
        self.port = port
        self.address = address
        self.started = False
        self.con = None

        core.addListener(pox.core.GoingUpEvent, self._handle_GoingUpEvent)