Home All Groups Group Topic Archive Search About

How to send messages, data & files between two computers ?

Author
14 Dec 2006 3:53 PM
Chor Lit
Hello,

I have just started to learn .net and I can't find the answer to the above
question. I want to write a program that, after installed on two computers,
can send messages, data and files to each other. The two computers are inside
a building and is not remotely situated.

I am not very good at networking. I just want to know which class in .net
should I use ? I know it is in namespace System.IO, but I don't know which
specific class ?

Thanks.

Author
14 Dec 2006 4:03 PM
Eugene Mayevski
Hello!
You wrote  on Thu, 14 Dec 2006 07:53:01 -0800:

CL> I have just started to learn .net and I can't find the answer to the
CL> above question. I want to write a program that, after installed on two
CL> computers, can send messages, data and files to each other. The two
CL> computers are inside a building and is not remotely situated.
CL> I am not very good at networking. I just want to know which class in
CL> .net should I use ? I know it is in namespace System.IO, but I don't
CL> know which specific class ?

System.Net.Sockets.Socket for plain TCP communication. But remember that TCP
is stream-based and you will have to design your own data exchange
protocols.

Take a look at MsgConnect (http://www.eldos.com/msgconnect) - this
cross-platform framework for message exchange will save your time
significantly.

With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security
Author
14 Dec 2006 4:53 PM
James Crosswell
Chor Lit wrote:
> Hello,
>
> I have just started to learn .net and I can't find the answer to the above
> question. I want to write a program that, after installed on two computers,
> can send messages, data and files to each other. The two computers are inside
> a building and is not remotely situated.
>
> I am not very good at networking. I just want to know which class in .net
> should I use ? I know it is in namespace System.IO, but I don't know which
> specific class ?

You could use .NET remoting, create a web service or (as the poster
above suggested) use lower level TCP/IP communications... It really
depends on the nature of the data you'll be passing between the apps though.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
Author
15 Dec 2006 5:10 PM
Vadym Stetsyak
Hello, Chor!

If you can use .NET 3.0 you can consider using
Windows Communication Foundation. ( WCF )

There are plenty of articles on the net about it...

You wrote  on Thu, 14 Dec 2006 07:53:01 -0800:

CL> I have just started to learn .net and I can't find the answer to the
CL> above question. I want to write a program that, after installed on two
CL> computers, can send messages, data and files to each other. The two
CL> computers are inside a building and is not remotely situated.

CL> I am not very good at networking. I just want to know which class in
CL> .net should I use ? I know it is in namespace System.IO, but I don't
CL> know which specific class ?


With best regards, Vadym Stetsyak.  E-mail: vady***@ukr.net

AddThis Social Bookmark Button