Esempio n. 1
0
	def handleFTData(self, ftID, data):
		d = protocol_pb2.FileTransferData()
		d.ftid = ftID
		d.data = data

		message = WRAP(d.SerializeToString(), protocol_pb2.WrapperMessage.TYPE_FT_DATA);
		self.send(message)
Esempio n. 2
0
 def handleFTContinuePayload(self, data):
     payload = protocol_pb2.FileTransferData()
     if (payload.ParseFromString(data) == False):
         #TODO: ERROR
         return
     self.handleFTContinueRequest(payload.ftID)