title: TcpClient class in c++ (Microsoft Visual Studio) example?
body: <p>I feel so embarrassed it's really a newbie question.
  I usually using sys/socket in Linux / Osx to get tcp networking work.
  In windows I didn't have clue about it.</p>
  
  <p>I've already made this code running in C#:</p>
  
  <pre><code>using System;
  using System.Net.Sockets;
  using System.Text;
  
  public class HelloWorld
  {
      const String ipAddress = "192.168.2.81";
      static TcpClient tcpClient;
      static NetworkStream networkStream;
  
      static public void Main ()
      {
          Console.WriteLine ("Hello Mono World");
  
          tcpClient = new TcpClient();
          tcpClient.Connect(ipAddress, 9090);
  
          networkStream = tcpClient.GetStream();
          networkStream.WriteTimeout = -1;
  
          byte[] data = Encoding.ASCII.GetBytes("Client Connected to: " + ipAddress);
          networkStream.Write(data, 0, data.Length);
  
          byte[] data1 = Encoding.ASCII.GetBytes("Action1");
  
          while(true) {
              System.Threading.Thread.Sleep(1000);
              networkStream.Write(data1, 0, data1.Length);
          }
      }
  }
  </code></pre>
  
  <p>When I look into the msdn <a href="https://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient(v=vs.110).aspx" rel="nofollow">TcpClient</a>, it does supporting c++. But when I put it, the studio can't understand TcpClient. Usually we need to put some header in it. But in the documentation there is no header to include. So i'm confuse how can I use TcpClient in c++ then? Am I missing something from the documentation, since i'm new at this?</p>