UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

31 lines (30 loc) 967 B
import { Packet } from './base'; import { PacketType } from './enums'; /** * ERRor * * If you specify a wrong value, like invalid packet / hostname / adminpass / specpass, * the Relay returns an error packet. */ export declare class IR_ERR extends Packet { readonly Size = 4; readonly Type = PacketType.IRP_ERR; /** As given in {@link IR_SEL}, otherwise 0 */ ReqI: number; /** Error number */ ErrNo: InSimRelayError | 0; } export declare enum InSimRelayError { /** Invalid packet sent by client (wrong structure / length) */ IR_ERR_PACKET = 1, /** Invalid packet sent by client (packet was not allowed to be forwarded to host) */ IR_ERR_PACKET2 = 2, /** Wrong hostname given by client */ IR_ERR_HOSTNAME = 3, /** Wrong admin pass given by client */ IR_ERR_ADMIN = 4, /** Wrong spec pass given by client */ IR_ERR_SPEC = 5, /** Spectator pass required, but none given */ IR_ERR_NOSPEC = 6 }