This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql2/benchmarks/ping-pong-server.js

13 lines
188 B
JavaScript
Raw Normal View History

2014-09-24 17:56:53 -04:00
var net = require('net');
var byte = new Buffer([0x33]);
function pong()
{
this.write(byte);
}
net.createServer(function(s) {
s.setNoDelay(true);
s.ondata = pong;
}).listen(3334);