Wokring With System.Net.Sockets

  • Thread starter Thread starter Jeff Law
  • Start date Start date
J

Jeff Law

You'll need to convert the other objects to strings.

Jeff Law
New Zealand
 
Hi,

I have a client Server Application which was write in vb.net

i m using the TcpClient Object And A StreamWriter To Send a message to the
client but i would like to

send other objects but for strings like arrays, my own objects and so on.

how can i do that ?

Thanks.

T:-)
 
How can i convert my own class to string ?

Jeff Law said:
You'll need to convert the other objects to strings.

Jeff Law
New Zealand
 
How can i convert my own class to string ?

Serialization... You can mark your objects as serializable and either
serialize to a byte array (via a memory stream) and send the raw bytes
or you can serialize to an XML string and send that.
 
Thanks.
Bye

Tom Shelton said:
Serialization... You can mark your objects as serializable and either
serialize to a byte array (via a memory stream) and send the raw bytes
or you can serialize to an XML string and send that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top