Пример #1
0
 def __init__(self, host, protocol, port, sport):
     AbstractActor.__init__(self, False, False)
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.MMSTD.Actors.Network.NetworkClient.py')
     self.port = port
     self.sport = sport
     self.host = host
     self.protocol = protocol
     self.socket = None
     self.inputMessages = []
     self.outputMessages = []
Пример #2
0
    def __init__(self, host, protocol, port, sourcePort):
        AbstractActor.__init__(self, True, False)
        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.MMSTD.Actors.Network.NetworkServer.py')

        self.port = port
        self.sourcePort = sourcePort
        self.host = host
        self.protocol = protocol
        self.server = None
        self.instantiatedServers = []
        self.allowMultipleClients = True
Пример #3
0
 def stop(self):
     self.log.debug("Stopping the thread of the network client")
     AbstractActor.stop(self)
Пример #4
0
    def stop(self):
        self.log.debug("Stopping the thread of the network server")

        self.close()
        AbstractActor.stop(self)