예제 #1
0
 def generate_response(self, request):
     return buffer(request, 0, 4) + (buffer(_s_ulong.pack(ms_time(self.epoch_time()))) + buffer(request, 8))
예제 #2
0
 def generate_response(self, request):
     return (buffer(request, 0, 4) +
             (buffer(_s_ulong.pack(ms_time(self.epoch_time()))) +
              buffer(request, 8)))
예제 #3
0
 def generate_request(self, context=None):
     return _s_ts_simpver.pack(ms_time(self.epoch_time()), 0) + generate_random_bytes(self.packet_bytes - 8)
예제 #4
0
 def generate_request(self, context=None):
     return (_s_ts_simpver.pack(ms_time(self.epoch_time()), 0) +
             generate_random_bytes(self.packet_bytes - 8))