Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
Am beginner to C++, and have stuck with accessing another pc from mine, and have to update folder and sub folder either side or synchronize the file which modified in C++,Its like Server PC and Clients for example.
if anybody helps me will be very thankful please.
from
venkatesh.
Posted

Well, there's a lot of synchronizing software out there... but if it's code you're trying to keep synchronize, you should really use source control software. Why? ...because it will not just keep you synchronized, it will also keep a history of all your changes so you can revert or track down problems that happened due to changes in the source, allow you to do diffs on your changes to see what's changed, and allow you to have multiple branches of code and tags (to have multiple versions and track your releases).

There are plenty of alternatives that are free for source control:
0. SVN
1. Mercurial
2. GIT
3. etc...

There are quite a few options[^] to choose from. They usually differ in the way they keep their repositories (central v. distributed), how the tracking is achieved, and how the tracking info is kept. They all have positives and negatives so you'll have to look through a few and see what suits you the best.

Once you learn how to use it, you'll wonder how you lived without it. :)
 
Share this answer
 
v2
well said and thanks Albert Holguin.... but am consider file name(Path),modified date and size of folder & file stored in structure vector in my pc, same way have to access other pc same folder will stored in vector,then will compare both data and update vice verse.
the problem is don't know how to access other pc through C++ code. not one pc it can be multiple number... so please.
 
Share this answer
 
v2
Comments
Albert Holguin 12-Oct-13 18:22pm    
This doesn't quite make sense... I'm not sure what you're trying to say.
Venkatesh lu 15-Oct-13 7:57am    
am having two pc's has server and client...for every 10 min have to synchronize two pc, am reading Data Folder path,modified date and size, storing in a vector and write in text file,have to compare text file of two pc. I don't know how to get that text file from client to server through Code.
Albert Holguin 15-Oct-13 10:05am    
Well, TCP/IP... just about all server-client applications use TCP/IP sockets to communicate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900