コード例 #1
0
    def replyOver(self):
        self.logger.info("Unicast : Replying over")
        if self.socket.type == socket.SOCK_STREAM:
            try:
                self.socket.shutdown(socket.SHUT_RDWR)
            except:
                self.logger.info("Unicast : unable to shutdown socket")

        self.socket.close()
        report = Report(Identification.PROBE_ID)
        if not (self.msgReceived and self.msgSent):
            report.isSuccess = False
        self.logger.info("Unicast : Report created")
        return report
コード例 #2
0
ファイル: unicast.py プロジェクト: netixx/NetProbes
    def replyOver(self):
        self.logger.info("Unicast : Replying over")
        if self.socket.type == socket.SOCK_STREAM:
            try:
                self.socket.shutdown(socket.SHUT_RDWR)
            except:
                self.logger.info("Unicast : unable to shutdown socket")

        self.socket.close()
        report = Report(Identification.PROBE_ID)
        if not (self.msgReceived and self.msgSent):
            report.isSuccess = False
        self.logger.info("Unicast : Report created")
        return report
コード例 #3
0
ファイル: broadcast.py プロジェクト: netixx/NetProbes
 def replyOver(self):
     self.socket.close()
     report = Report(Identification.PROBE_ID)
     report.isSuccess = self.msgReceived
     return report
コード例 #4
0
ファイル: ping.py プロジェクト: netixx/NetProbes
 def replyOver(self):
     return Report(Identification.PROBE_ID)
コード例 #5
0
ファイル: broadcast.py プロジェクト: netixx/NetProbes
 def replyOver(self):
     self.socket.close()
     report = Report(Identification.PROBE_ID)
     report.isSuccess = self.msgReceived
     return report