Beispiel #1
0
 void streamReader(NetworkStream st, TcpClient cl, Connection.ClStreamObj myClStreamObj) {
     Console.WriteLine( "reader running" );
     while ( cl.Connected ) {
         if ( st.DataAvailable ) {
             Console.WriteLine( "revise data.." );
             new Thread( () => processBuffer( Connection.ReadStream( st, cl.Available ), cl.GetHashCode() ) ).Start();
             Connection.WriteStream( st, NetMessage.OK );
         }
     }
 }