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
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