title: Reject a TCP client connection in node.js
body: <p>I have a node.js TCP server, set up in the following fashion:</p>
  
  <pre><code>var net = require('net');
  
  ...
  
  var gatewayTcpServer = net.createServer(gatewayServer.onGatewayClientConnection);
  </code></pre>
  
  <p>In order to minimise the chances of hacking / DDOS attacks, I would like to kill a connection if it receives odd data, or remains open without communicating for too long.</p>
  
  <p>Is it possible to disconnect / reject the connection, using the socket that is passed to the   <code>onGatewayClientConnection</code> delegate?</p>