title: How to accept TCP stream from client (video stream)?
body: <p>I trying to get video stream from client on TCP connection. </p>
  
  <p>I define a socket on the code below - but i don't know how to continue it. 
  I need to wait until client will connect - and listen until the client will close the tcp connection - </p>
  
  <p>I don't know how to accept the stream from the client - and how to keep the byte stream and save all the video on incoming stream data </p>
  
  <pre><code>public void Connect(int port)
  {
      Socket server = 
          new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
  
      server.Bind(new IPEndPoint(IPAddress.Any, port));
  
      server.Listen(100);
  
      while (true)
      {
          Socket clientSocket = server.Accept();
      }
  }
  </code></pre>