Commit 0472fa63 authored by nanahira's avatar nanahira

simplify

parent 2365b6b0
Pipeline #10147 passed with stages
in 1 minute and 5 seconds
...@@ -58,17 +58,15 @@ const AttackRoutine: AttackStep[] = [ ...@@ -58,17 +58,15 @@ const AttackRoutine: AttackStep[] = [
]; ];
export class Attacker { export class Attacker {
address: string;
port: number;
timeout: number;
socket: dgram.Socket; socket: dgram.Socket;
error: any; error: any;
currentWait: (msg: Buffer, rinfo: any) => void; currentWait: (msg: Buffer, rinfo: any) => void;
constructor(address: string, port: number, timeout: number) { constructor(
this.address = address; private address: string,
this.port = port; private port: number,
this.timeout = timeout; private timeout: number,
) {
this.currentWait = null; this.currentWait = null;
this.error = null; this.error = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment