Пример #1
0
    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
 def __init__(self, lport):
     self.lport = lport
     Server.__init__(self)
Пример #3
0
 def __init__(self):
     Server.__init__(self)