Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Socket Programming
Message
From
16/01/2007 19:41:57
 
 
To
16/01/2007 13:37:31
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01185331
Message ID:
01186133
Views:
19
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.com
Success 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform