title: How to send data to specific sockets created using net.createServer() connection event?
body: <p>I am used to perl and POE programming when it comes to sockets, and I am looking at using node.js for an application server that is not web based. I have JavaScript knowledge from writing webpage user interfaces.</p>
  
  <p>I have been working with the net module and have successfully been able to connect to it from multiple clients at the same time.</p>
  
  <pre><code>var net = require('net');
  var port = 63146;
  var socketNum = 0;
  
  var adminServer = net.createServer(function(socket){
       //add connection count
       socketNum++;
       socket.nickname = "Con# " + socketNum;
       var clientName = socket.nickname;
  
       console.log(clientName + "connected from " + socket.remoteAddress);
       socket.write("You have been given the client name of " + clientName);
   });
  
  adminServer.listen(port, function() {
      console.log("Server listening at" + port);
  });
  </code></pre>
  
  <p>So the issue I am having is if I have another function created that needs to send data to a specific client, not a broadcast to all of them, I can't figure out how to do it.</p>
  
  <p>I have done extensive searching here and Google. Lots of examples of simple tcp servers and echo servers to a single client, but nothing for multiple clients.</p>
  
  <p>I am trying to do this WITHOUT socket.io as not all the clients are going to be web based.</p>
  
  <p>Any help would be appreciated,</p>
  
  <p>Z</p>