MCPcopy Create free account
hub / github.com/Marus/cortex-debug / emitConfigures

Method emitConfigures

src/common.ts:459–473  ·  view source on GitHub ↗
(cfg: RTTConfiguration, obj: EventEmitter)

Source from the content-addressed store, hash-verified

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
476export function calculatePortMask(decoders: any[]) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected