コード例 #1
0
    def startProtocol(self):
        """one_user_full_login_udp_server_test
        DO NOT MODIFY THE FIRST TWO LINES OF THIS METHOD!!

        If in doubt, do not add anything to this method.  Just ignore it.
        It is used to randomly drop outgoing packets if the -l
        command line option is used.packet_stor
        """
        self.transport = LossyTransport(self.transport, self.lossPr)
        DatagramProtocol.transport = self.transport
コード例 #2
0
    def startProtocol(self):
        """
        DO NOT MODIFY THE FIRST TWO LINES OF THIS METHOD!!

        If in doubt, do not add anything to this method.  Just ignore it.
        It is used to randomly drop outgoing packets if the -l
        command line option is used.
        """
        self.transport = LossyTransport(self.transport, self.lossPr)
        DatagramProtocol.transport = self.transport
        nomMovie = 0

        for m in self.serverProxy.getMovieList():
            nomMovie += 1
            print("Movie title: ", m.movieTitle, m.movieId)
            print('ip port',
                  self.serverProxy.getMovieAddrPort(m.movieTitle)[0])
        print(nomMovie)
コード例 #3
0
 def startProtocol(self):
     """
     DO NOT MODIFY THE FIRST TWO LINES OF THIS METHOD!!
     """
     self.transport = LossyTransport(self.transport, self.lossPr)
     DatagramProtocol.transport = self.transport
コード例 #4
0
 def startProtocol(self):
     self.transport = LossyTransport(self.transport, self.lossPr)
     DatagramProtocol.transport = self.transport