connecting throw modem
-
Hi i want to transfer files and data throw modem .we have 2 pc and 1 tel line and want to send and recieve by this line so how can do it? Regards' amir jalaly
-
Hi i want to transfer files and data throw modem .we have 2 pc and 1 tel line and want to send and recieve by this line so how can do it? Regards' amir jalaly
It really doesn't matter what the connection device is. So long as you're connected, you can use a myriad of classes to transfer files. You could create a simple TCP socket connection using the
TcpClient
class, for example. If an accessible share exists on one or the other machine (or both), then you can simply useFile.Copy
to copy files, although this typically won't work because of default security (and anonymous write permissions are too risky). You could also go all-out and create a .NET Remoting client/server between the two, transfering files asbyte[]
arrays, or better yet use DIME (part of the WSE 2.0, which you can download from MSDN[^]. DIME gets around serialization, which is a big performance boost. So, just forget that a modem is connecting to the two clients and use whatever class(es) you'd like. So long as TCP/IP is the protocol connecting the clients, your options are many; otherwise, you'll need to create aSocket
connection with the correctAddressFamily
.Microsoft MVP, Visual C# My Articles