473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Wokring With System.Net.Sockets

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:-)
Nov 21 '05 #1
4 1043
You'll need to convert the other objects to strings.

Jeff Law
New Zealand

"Tiraman :-)" <ti*****@netvision.net.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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:-)

Nov 21 '05 #2
How can i convert my own class to string ?

"Jeff Law" <je*****@datamasta.co.nz> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
You'll need to convert the other objects to strings.

Jeff Law
New Zealand

"Tiraman :-)" <ti*****@netvision.net.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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:-)


Nov 21 '05 #3
In article <O5**************@TK2MSFTNGP12.phx.gbl>, Tiraman :-) wrote:
How can i convert my own class to string ?

"Jeff Law" <je*****@datamasta.co.nz> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
You'll need to convert the other objects to strings.

Jeff Law
New Zealand


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.

--
Tom Shelton [MVP]
Nov 21 '05 #4
Thanks.
Bye

"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uG****************@TK2MSFTNGP14.phx.gbl...
In article <O5**************@TK2MSFTNGP12.phx.gbl>, Tiraman :-) wrote:
How can i convert my own class to string ?

"Jeff Law" <je*****@datamasta.co.nz> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
You'll need to convert the other objects to strings.

Jeff Law
New Zealand


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.

--
Tom Shelton [MVP]

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
4
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
2
by: Stressed Out Developer | last post by:
We have an application that has a 200 count loop that does the following: ' Each time thru the loop we pass the next IP Address is a range (aka 192.168.4.50 thru 192.168.4.254) Try If...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.