Sha256: d4a6bd411bef49e1bfd281c889c4f251f7ca18e86fa39a3c17483cfdaaeceab8
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
from javonet.core.interpreter.Interpreter import Interpreter from javonet.utils.connectionData.InMemoryConnectionData import InMemoryConnectionData class Receiver: def __init__(self): self.python_interpreter = Interpreter() self.connection_data = InMemoryConnectionData() def SendCommand(self, messageByteArray, messageByteArrayLen): return bytearray(self.python_interpreter.process(messageByteArray, len(messageByteArray), self.connection_data)) def HeartBeat(self, messageByteArray, messageByteArrayLen): response_byte_array = bytearray(2) response_byte_array[0] = messageByteArray[11] response_byte_array[1] = messageByteArray[12] - 2 return response_byte_array
Version data entries
2 entries across 2 versions & 1 rubygems