Expand media, network-stack, pear-platform, and scheduling module APIs
Add batch helpers, clear/count utilities, and management methods across content protection, FEC, flow shaper, circuit loom, trust gate, peer scheduler, and related modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -94,6 +94,17 @@ class HyperP2PQosTopic extends EventEmitter {
|
||||
return n
|
||||
}
|
||||
|
||||
handlerCount () {
|
||||
return this._handlers.size
|
||||
}
|
||||
|
||||
peekHighest () {
|
||||
for (let q = MAX_QOS; q >= 0; q--) {
|
||||
if (this._queues[q].length) return { ...this._queues[q][0] }
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
_onGossip (data) {
|
||||
if (!data || data.type !== 'qos-publish') return
|
||||
this._stats.gossipIn++
|
||||
|
||||
Reference in New Issue
Block a user