Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

P2P file sharing - mfc

Status
Not open for further replies.

Jia18

Programmer
Oct 19, 2003
2
DE
I m intending to make a p2p file transfer application in VC++ using MFC. The thing is i m new to multithreading and socket programming. I have read some stuff and have come up with the following:

My app maintains a peer list(host IPs) to connect to and send queries. The queries are sent/received thru UDP the download/upload is thru TCP. SO what i thought was that there b 4 threads : UDP server , TCP server , Client and one that checks periodically for dead peers n removes them from the list.

The problem is i m new to this , n i dont really understand what the design will b like. where will b the threads the sockets, every thread has a socket? and if i wanna use MDI then what? Also i have read a alot about mfc sockets class not being good enuff, please help me i m stuck :(
 
Thanx Xerxes , but the thing is i have already read everything there is on sockets in msdn .. i m still confused :/. I m new to mfc and may b thats what is confusing but please a li'l bit of help will b greatly appreciated.
 
Problem is:
U sound new to socket/thread/MDI :)

First get a sound understanding of socket programming.


the link gives u an article on socket programming. short & definitely enuff to get u started.

Have you attempted some simple TCP stuff earlier?

I have used MFC sockets for many professional applications, and its good enough!


/Srik

What do little birdies see when knocked unconscious?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top