node-insim
Version:
An InSim library for NodeJS with TypeScript support
20 lines (19 loc) • 611 B
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
import { HInfo } from './structs';
/**
* Hostlist (hosts connected to the Relay)
*/
export declare class IR_HOS extends Packet {
SIZE_MULTIPLIER: number;
/** 4 + NumHosts * 40 */
readonly Size = 4;
readonly Type = PacketType.IRP_HOS;
/** As given in {@link IR_HLR} */
ReqI: number;
/** Number of hosts described in this packet */
NumHosts: number;
/** Host info for every host in the Relay. 1 to 6 of these in a {@link IR_HOS} */
Info: HInfo[];
unpack(buffer: Uint8Array<ArrayBuffer>): this;
}