def matches(self, packet, dpid, port): log.debug('Packet IN? dpid = %s, port = %s' % (str(dpid), str(port))) node = self.get_node(packet, dpid, port) if not node: return False args = [self, packet, dpid, port] return OF_TcpServer.matches(*args)
def __init__(self, callback, lport): self.buffers = {} # {(dpid, port): buffer, } MWServer.__init__(self, callback) OF_TcpServer.__init__(self, lport)