Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Socket Programming
Message
De
16/01/2007 19:41:57
 
 
À
16/01/2007 13:37:31
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01185331
Message ID:
01186133
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform