Lines Matching refs:sock
29 const sock = dgram.createSocket('udp4'); constant
34 () => { sock.send(); },
46 () => { sock.send(buf, 1, 1, -1, host); },
55 () => { sock.send(buf, 1, 1, 0, host); },
64 () => { sock.send(buf, 1, 1, 65536, host); },
73 () => { sock.send(buf, 1234, '127.0.0.1', common.mustNotCall()); },
95 () => { sock.send(input, 6, 0); },
104 () => { sock.send(input, 0, 6); },
113 () => { sock.send(input, 3, 4); },
122 assert.throws(() => { sock.send(buf, 1, 1, -1, host); }, RangeError);
123 assert.throws(() => { sock.send(buf, 1, 1, 0, host); }, RangeError);
124 assert.throws(() => { sock.send(buf, 1, 1, 65536, host); }, RangeError);
129 () => { sock.send(23, 12345, host); },
140 () => { sock.send([buf, 23], 12345, host); },
152 sock.connect(12345, common.mustCall(() => {
154 sock.close();