Hi Alexandre,
I also tried the following code but it produces the same result when received by the server application:
string msg = this.textBox1.Text;
m_clientSocket.DontFragment = true;
m_clientSocket.SendBufferSize = 1024;
NetworkStream networkStream = new NetworkStream(m_clientSocket);
System.IO.StreamWriter streamWriter = new System.IO.StreamWrite(networkStream);
streamWriter.Write(msg);
streamWriter.Flush();
How can I send it as a whole string so that the server application will receive it as a string?
Thanks in advance...
Music Rocks
www.musicreserve.blogspot.comSuccess is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.