class CheckIPs(amp.Command): """Check IP addresses already in-use. :since: 2.7 """ arguments = [( b"ip_addresses", AmpList([ (b"ip_address", amp.Unicode()), (b"interface", amp.Unicode(optional=True)), ]), )] response = [( b"ip_addresses", AmpList([ (b"ip_address", amp.Unicode()), (b"interface", amp.Unicode(optional=True)), (b"used", amp.Boolean()), (b"mac_address", amp.Unicode(optional=True)), ]), )] errors = {}
class UpdateChunk(amp.Command): arguments = [(b'chunk', amp.Unicode())] response = [(b'result', amp.Boolean())]
class UpdateUserPosition(amp.Command): arguments = [(b'user', amp.Unicode()), (b'x', amp.Float()), (b'y', amp.Float())] response = [(b'result', amp.Boolean())]
class UpdateMaterial(amp.Command): arguments = [(b'x', amp.Integer()), (b'y', amp.Integer()), (b'material', amp.Integer())] response = [(b'result', amp.Boolean())]
class ShowAdj(amp.Command): arguments = [('show', amp.Boolean())] response = []
class JobEnded(amp.Command): arguments = [ ('arg_tuple_pickle', amp.String()) ] response = [('ok', amp.Boolean())]
class FindNode(amp.Command): arguments = [('key', amp.String())] response = [('node', amp.String()), ('address', amp.String()), ('port', amp.Integer()), ('my_key', amp.Boolean())]
class Count(amp.Command): arguments = [(b'n', amp.Integer())] response = [(b'ok', amp.Boolean())]
class Join(amp.Command): arguments = [('name', amp.String())] response = [('result', amp.Boolean())]
class FlushCommand(amp.Command): arguments = [] response = [ ('flush', amp.Boolean()), ]
class PacketBulletUpdate(amp.Command): requiresAnswer = False arguments = [(b'id', amp.Integer()), (b'position_x', amp.Float()), (b'position_y', amp.Float()), (b'velocity_x', amp.Float()), (b'velocity_y', amp.Float()), (b'active', amp.Boolean())] response = []
class PacketShipInput(amp.Command): requiresAnswer = False arguments = [(b'id', amp.Integer()), (b'up', amp.Boolean()), (b'down', amp.Boolean()), (b'left', amp.Boolean()), (b'right', amp.Boolean()), (b'fire', amp.Boolean())] response = []
class FetchChickenPlaceCommand(amp.Command): response = [('has_chicken', amp.Boolean()), ('place', amp.String()), ('id', amp.Integer())] arguments = [('id', amp.Integer()), ('info', amp.String())]
class HandshakeHandler(amp.Command): arguments = [(b'asked', amp.Boolean())] response = [(b'id', amp.String())] errors = {ConnectionError: b'Could not send'}
class SecuredPing(amp.Command): # XXX TODO: actually make this refuse to send over an insecure connection response = [('pinged', amp.Boolean())]
class GetNextMutation(amp.Command): arguments = [] response = [('offset', amp.Integer()), ('mutation_index', amp.Integer()), ('stop', amp.Boolean()), ('pause', amp.Boolean())]
class ApplicationServer_RegisterNewUser(Command): arguments = [(b'user_id', amp.Integer()), (b'password', amp.Unicode())] response = [(b'ok', amp.Boolean())] errors = {Exception: b'Exception'}
class EndRemote(amp.Command): arguments = [] response = [('bResult', amp.Boolean())] """
class Set(amp.Command): arguments = [('key', amp.String()), ('value', amp.String())] response = [('status', amp.Boolean())]
class SendMsg(amp.Command): arguments = [('sMsg', amp.String()), ('iTimestamp', amp.Integer())] response = [('bResult', amp.Boolean())] errors = {SlotErrorNotification: 'SLOT_ERROR_NOTIFICATION'} """
class NewPrev(amp.Command): arguments = [('node', amp.String()), ('address', amp.String()), ('port', amp.Integer())] response = [('status', amp.Boolean())]
class TransmitPipegraph(amp.Command): arguments = [ ('jobs', amp.String()) ] response = [('ok', amp.Boolean()), ('exception', amp.String())]