import { UdpPacketSignature } from 'packets/definitions' ; /**
 * sends out an acknowledgement holepunch packet to the user
 */ export class OutHolepunchPacketUdp { private portId : number ; constructor ( portId ) { this . portId = portId ; } public build ( ) { const outBuffer = Buffer . alloc ( 3 ) ; outBuffer . writeUInt8 ( UdpPacketSignature , 0 ) ; outBuffer . writeUInt16LE ( this . portId , 1 ) ; return outBuffer ; } }