MCPcopy Create free account
hub / github.com/deepclause/agentvm / hasReceivedFin

Method hasReceivedFin

src/network.js:345–352  ·  view source on GitHub ↗

* Check if any TCP session has received FIN (for EOF signaling) * @returns {boolean}

()

Source from the content-addressed store, hash-verified

343 * @returns {boolean}
344 */
345 hasReceivedFin() {
346 for (const [key, session] of this.natTable) {
347 if (session.state === 'FIN_WAIT' || session.state === 'CLOSED_BY_REMOTE') {
348 return true;
349 }
350 }
351 return false;
352 }
353
354 // Called internally when we want to send a frame TO the VM
355 send(payload, proto) {

Callers 1

startFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected