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()); },
81 assert.throws(() => { sock.send(buf, 1, 1, -1, host); }, RangeError);
82 assert.throws(() => { sock.send(buf, 1, 1, 0, host); }, RangeError);
83 assert.throws(() => { sock.send(buf, 1, 1, 65536, host); }, RangeError);
88 () => { sock.send(23, 12345, host); },
99 () => { sock.send([buf, 23], 12345, host); },
111 sock.connect(12345, common.mustCall(() => {
113 sock.close();