예제 #1
0
    def setUp(self):
        self.server_addr = ('127.0.0.2', 55000)
        self.client_addr = ('127.0.0.3', 55001)
        
        # shaping init
        ShaperMixin.setUp(self)
        
        ServerMixin.run_server(self)

        with open('/dev/urandom', 'rb') as f:
             self.randomfile = bytearray(f.read(self.filesize))
예제 #2
0
    def setUp(self):
        self.server_addr = ('127.0.0.2', 55000)
        self.client_addr = ('127.0.0.3', 55001)

        # shaping init
        ShaperMixin.setUp(self)

        ServerMixin.run_server(self)

        with open('/dev/urandom', 'rb') as f:
            self.randomfile = bytearray(f.read(self.filesize))
예제 #3
0
 def tearDown(self):
     ShaperMixin.tearDown(self)
예제 #4
0
 def setUp(self):
     self.server_addr = ('127.0.0.2', 55000)  # 5 ms delay
     self.client_addr = ('127.0.0.3', 55001)  # 30 ms delay
     ShaperMixin.setUp(self)
예제 #5
0
파일: test_delay.py 프로젝트: boonchu/shapy
 def tearDown(self):
     ShaperMixin.tearDown(self)
예제 #6
0
파일: test_delay.py 프로젝트: boonchu/shapy
 def setUp(self):
     self.server_addr = ('127.0.0.2', 55000) # 5 ms delay
     self.client_addr = ('127.0.0.3', 55001) # 30 ms delay
     ShaperMixin.setUp(self)
예제 #7
0
 def tearDown(self):
     if hasattr(self, 'sock_client'):
         self.sock_client.close()
     ShaperMixin.tearDown(self)
     
예제 #8
0
 def tearDown(self):
     if hasattr(self, 'sock_client'):
         self.sock_client.close()
     ShaperMixin.tearDown(self)