MCPcopy Index your code
hub / github.com/nodejs/node / guessHandleType

Function guessHandleType

lib/internal/util.js:860–863  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

858
859const handleTypes = ['TCP', 'TTY', 'UDP', 'FILE', 'PIPE', 'UNKNOWN'];
860function guessHandleType(fd) {
861 const type = _guessHandleType(fd);
862 return handleTypes[type];
863}
864
865class WeakReference {
866 #weak = null;

Callers 5

createHandleFunction · 0.85
dgram.jsFile · 0.85
_createSocketHandleFunction · 0.85
getStdinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…