コード例 #1
0
ファイル: tcp.py プロジェクト: luferra/scn-openflow-driver
    def __init__(self, lport, max_active_conns=1000):  # was max_active_conns=250
        """port is the port the TCPServer should listen for SYN packets on."""
        assert lport >= 0 and lport < 65536, "Port must be between 0 and 65536 (exclusive)"

        self.lport = lport
        self.connections = {}
        self.max_active_conns = max_active_conns
        Server.__init__(self)
コード例 #2
0
ファイル: udp.py プロジェクト: luferra/scn-openflow-driver
 def __init__(self, lport):
     self.lport = lport
     Server.__init__(self)
コード例 #3
0
ファイル: icmp.py プロジェクト: luferra/scn-openflow-driver
 def __init__(self):
     Server.__init__(self)