473,395 Members | 2,689 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,395 software developers and data experts.

Sending files p2p

Hi,

has anyone in here got a good example or some hints on how to send a
file directly from one pc to another pc using vb.net, for example I've
got my pc's ip and a friends pc's ip and I want to send him a file or
he wants to send me a file, it just needs to be a very basic program
for sending files up to maximum 6mb.
thnx a lot
Peter
Nov 20 '05 #1
6 2773
"Piedro" <pp*****@hotmail.com> schrieb

has anyone in here got a good example or some hints on how to send
a file directly from one pc to another pc using vb.net, for example
I've got my pc's ip and a friends pc's ip and I want to send him a
file or he wants to send me a file, it just needs to be a very basic
program for sending files up to maximum 6mb.


You need a file exchange program. If you don't use the windows network you
can either try to find a ready-to-use component that allows sending and
receiving files, or define your own transmission protocol in your own
application, based upon TCP/IP. Have a look at the
System.Net.Sockets.TcpClient and System.Net.Sockets.TcpListener classes.
BTW and AFAIK, WinXP Prof. contains an FTP server.

see also:
http://msdn.microsoft.com/library/en...nginternet.asp
especially
http://msdn.microsoft.com/library/en...cpservices.asp
and the other topics around.

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
"Armin Zingler" <az*******@freenet.de> schrieb
"Piedro" <pp*****@hotmail.com> schrieb

has anyone in here got a good example or some hints on how to
send a file directly from one pc to another pc using vb.net, for
example I've got my pc's ip and a friends pc's ip and I want to
send him a file or he wants to send me a file, it just needs to be
a very basic program for sending files up to maximum 6mb.


You need a file exchange program. [...]


I know I could have left out this sentence... :)
--
Armin

Nov 20 '05 #3
"Armin Zingler" <az*******@freenet.de> wrote in message news:<40***********************@news.freenet.de>.. .
"Armin Zingler" <az*******@freenet.de> schrieb
"Piedro" <pp*****@hotmail.com> schrieb

has anyone in here got a good example or some hints on how to
send a file directly from one pc to another pc using vb.net, for
example I've got my pc's ip and a friends pc's ip and I want to
send him a file or he wants to send me a file, it just needs to be
a very basic program for sending files up to maximum 6mb.


You need a file exchange program. [...]


I know I could have left out this sentence... :)


No kiddin lol ;-)
but thnx for the links I'll check them out later tonight because I'm at work now
Nov 20 '05 #4
"Armin Zingler" <az*******@freenet.de> wrote in message news:<40***********************@news.freenet.de>.. .
"Armin Zingler" <az*******@freenet.de> schrieb
"Piedro" <pp*****@hotmail.com> schrieb

has anyone in here got a good example or some hints on how to
send a file directly from one pc to another pc using vb.net, for
example I've got my pc's ip and a friends pc's ip and I want to
send him a file or he wants to send me a file, it just needs to be
a very basic program for sending files up to maximum 6mb.


You need a file exchange program. [...]


I know I could have left out this sentence... :)


And some more response, I know there exist a lot of file exchange
programs, but I was thinking of programming one my self, just for the
fun of it and another question, would using the hash functions of .net
be a good idea to check if the file has arrived ok or has been send
ok? Any thoughts on this?

BTW if my post arrive late, it's because I'm posting via google
because at my office I can't access the news server via outlook
they're blocked :(
Nov 20 '05 #5
"Piedro" <pp*****@hotmail.com> schrieb

And some more response, I know there exist a lot of file exchange
programs, but I was thinking of programming one my self, just for
the fun of it and another question, would using the hash functions of
.net be a good idea to check if the file has arrived ok or has been
send ok? Any thoughts on this?


Depends on how much you wanna do on your own. If you want to do it all, use
the TCP* classes I mentioned. The simplest way to trigger the complete
transmission, is probably to send the file size before to let the
client/server know when the file is complete. But that's up to you how
define your own protocol. I'm sure there are dozens of samples out there
that already do what you need. Sorry, I don't have a link.
--
Armin

Nov 20 '05 #6
"Armin Zingler" <az*******@freenet.de> wrote in message news:<40***********************@news.freenet.de>.. .
"Piedro" <pp*****@hotmail.com> schrieb

And some more response, I know there exist a lot of file exchange
programs, but I was thinking of programming one my self, just for
the fun of it and another question, would using the hash functions of
.net be a good idea to check if the file has arrived ok or has been
send ok? Any thoughts on this?


Depends on how much you wanna do on your own. If you want to do it all, use
the TCP* classes I mentioned. The simplest way to trigger the complete
transmission, is probably to send the file size before to let the
client/server know when the file is complete. But that's up to you how
define your own protocol. I'm sure there are dozens of samples out there
that already do what you need. Sorry, I don't have a link.


Thnx for your advice, I'll check in to it when I have some time off,
but thnx again for the tips :)

Toedels
Nov 20 '05 #7

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

Similar topics

5
by: vanisathish | last post by:
Hi All, I need to constantly update some values to the User Interface. In order to do the updation efficiently, i am planning to run some script in the server side that constantly keeps sending...
2
by: Ebrahim | last post by:
Does any one have any suggestion of Sending Files over a Network ? using TcpClient class in C#. I need suggestions on transferring huge files ( > 5MB) reliably over the stream . Also any kind of...
0
by: Buddy Ackerman | last post by:
I'm sending file to the client (see sample code below) but when I send a large file the user gets a document contains no data message. response.contenttype = "application/x-unknown" myheader =...
0
by: Buddy Ackerman | last post by:
I'm sending file to the client (see sample code below) but when I send a large file the user gets a document contains no data message. response.contenttype = "application/x-unknown" myheader =...
6
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
3
by: Bonzol | last post by:
vb.net 2003 VB Hey there, I have a program that uses remote connections and it can send strings to the clients and from clients to server. Now we need to send files this way, is there anyway...
3
by: יוני גולדברג | last post by:
Hi, I have two asp.net applications on different networks. One application has to call some operation/method on the other application and pass two large files as parameters: One file is huge xml...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
1
by: akaley | last post by:
Hi, Iam sending mail by using mailx command..for other files it's working file,,But while sending txt files..some junk characters are coming in place of new lines.. my text file containg marking...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.