Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2008, 04:04 AM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ethiosoul
Default How to write peer to peer file sharing program

hi u all
I want to program an application which sends or receives a file. I can program for client/server but when i want p2p it seems difficult because there should be freedom in initiating the connection. One side will not be dedicately responsible for listening incomming connections and the other for initiating the connection in the case of p2p. I want to program it in C++/CLI by using System::Net.

can any one give me some hint
yours solomon

 
Old March 16th, 2008, 05:02 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Every single p2p program I know of uses some kind of server to initiate protocol (like trackers in bittorrent), most of the time the servers are a different entity from the peers that will end up sharing the information.
Even in VoIP calls, each peer know only the address of the proxy server they are registered to and this servers are the ones that initiate communications.
In you specific case, it could be possible to use UDP and send messages to a specific port, however each peer need to fully know the other peer, and that will limit you application.
I believe that using a server that is not either peer should solve a lot of problems, but I don't know if it is possible.






Similar Threads
Thread Thread Starter Forum Replies Last Post
P2PML - Peer-to-Peer Markup Language mlauzon XML 0 November 2nd, 2007 11:16 AM
peer to peer file sharing app in C++/linux blehjutsu C++ Programming 0 March 14th, 2007 06:46 AM
peer to peer udhu Java Basics 1 February 27th, 2007 12:49 PM
program won't write to file CNewbie Visual C++ 1 December 7th, 2004 06:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.