title: How to receive log from SRCDS in node.js
body: <p>I have srcds (source dedicated server)</p>
  
  <p>at console add <code>logaddress_add 0.0.0.0:25001</code></p>
  
  <p>this turn on sending the log to the remote server</p>
  
  <p>tried to catch the log in this way</p>
  
  <pre><code>var net = require('net');
  var server = net.createServer(function(c) { 
      c.on('end', function() {
          console.log('server disconnected');
      });
      c.pipe(c);
  });
  server.listen(25001);
  </code></pre>
  
  <p>and that </p>
  
  <pre><code>var net = require('net');
  var client = net.connect({port: 25001});
  
  client.on('data', function(data) {
      console.log(data.toString());
      client.end();
  });
  client.on('end', function() {
      console.log('client disconnected');
  });
  </code></pre>
  
  <p>and that </p>
  
  <pre><code>var s = dgram.createSocket('udp4');
  s.bind(25001, function(data) {
      console.log(data)
  });
  </code></pre>
  
  <p>no result. can someone help?</p>
  
  <p>thanks in advance</p>