473,473 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2776
"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: 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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.