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

Function startReceiving

lib/dgram.js:197–211  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

195
196
197function startReceiving(socket) {
198 const state = socket[kStateSymbol];
199
200 state.handle.onmessage = onMessage;
201 state.handle.onerror = onError;
202 state.handle.recvStart();
203 state.receiving = true;
204 state.bindState = BIND_STATE_BOUND;
205
206 if (state.recvBufferSize)
207 bufferSize(socket, state.recvBufferSize, RECV_BUFFER);
208
209 if (state.sendBufferSize)
210 bufferSize(socket, state.sendBufferSize, SEND_BUFFER);
211}
212
213function startListening(socket) {
214 startReceiving(socket);

Callers 2

startListeningFunction · 0.85
dgram.jsFile · 0.85

Calls 1

bufferSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…