title: Creating TCP Connections with Node.js in C++
body: <p>I getting ready to write a small client module for Node.js using C++. The client will communicate with a remote server. I started by creating a class that communicates with the remote server, and I will eventually wrap that class with the main module class which inherits from node::ObjectWrap.</p>
  
  <p>Typically I would use the Boost library for networking, but it dawns on me that Node has a lot of networking stuff built into it. Since I'm linking against Node anyway, I figure I could save myself a few dependencies by using Node's built in networking, but I can't find any documentation on Node's networking within C++.</p>
  
  <p>Can anyone provide an example of using Node to create TCP connections, and send/receive data over the connection, from within C++? Or at least link to some documentation on the subject?</p>