(cfg: RTTConfiguration, obj: EventEmitter)
| 457 | } |
| 458 | |
| 459 | public emitConfigures(cfg: RTTConfiguration, obj: EventEmitter): boolean { |
| 460 | let ret = false; |
| 461 | if (cfg.enabled) { |
| 462 | for (const dec of cfg.decoders) { |
| 463 | if (dec.tcpPort || dec.tcpPorts) { |
| 464 | obj.emit('event', new RTTConfigureEvent({ |
| 465 | type: 'socket', |
| 466 | decoder: dec |
| 467 | })); |
| 468 | ret = true; |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | return ret; |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | export function calculatePortMask(decoders: any[]) { |
no outgoing calls
no test coverage detected