vban
Version:
Node VBAN implementation
37 lines (36 loc) • 1.21 kB
TypeScript
import { Buffer } from 'node:buffer';
import { VBANPacket } from '../VBANPacket.js';
import { ESubProtocol } from '../ESubProtocol.js';
import { EServiceType } from './EServiceType.js';
import { IVBANHeaderService } from './IVBANHeaderService.js';
import { EServiceFunction } from './EServiceFunction.js';
import { IVBANHeaderCommon } from '../IVBANHeaderCommon.js';
export declare class VBANServicePacket extends VBANPacket {
/**
* {@link VBANServicePacket.subProtocol}
*/
static readonly subProtocol: ESubProtocol;
subProtocol: ESubProtocol;
/**
* Sub Type of the service packet
* {@link EServiceType}
*/
service: EServiceType;
/**
* current function for this function
*/
serviceFunction: EServiceFunction;
/**
* answer is a reply to another request
*/
isReply: boolean;
data: unknown;
/**
* not used .
*/
sr: number;
constructor(headers: IVBANHeaderService);
toUDPPacket(): ReturnType<(typeof VBANServicePacket)['toUDPPacket']>;
static fromUDPPacket(headers: IVBANHeaderCommon, dataBuffer: Buffer): undefined | VBANServicePacket;
static toUDPPacket(packet: VBANServicePacket): Buffer;
}