Hello,
I now got a compiled version of emule without problems by using VS2003.
At the moment I try to understand how this whole thing works and Im at SearchManager.cpp. Whats the difference between CSearch::FILE: and CSearch::FINDSOURCE:? At first I would think the difference would be that the first is for filesearching and the second for finding sources for a file but the keyword-kademlia search seems to be at CSearch::KEYWORD:.
So I thought there where 2 searches related to a file. The search for files with CSearch::KEYWORD: and the search for sources for a file-hash with CSearch::FINDSOURCE:. So whats CSearch::FILE:?
Greetings!
Sebastian
Page 1 of 1
Difference Between Csearch::file: And Csearch::findsource:
#2
Posted 15 December 2008 - 06:13 PM
CSearch::FINDSOURCE is used to find a specific source in the network (the buddy) and CSearch::FILE is used to find sources for a file. You can find out more about certain terms by simply searching the sourcecode for them.
#3
Posted 20 December 2008 - 04:18 AM
Thanks for answering... Didnt get a mail about it I think. I will try that.
C++ isnt that hard to understand I think. Its like php coded in classes for me. Or at least its similar. Not so friendly like php for example brackets must be wrote in a new line in a for-construct but its understandable.
I will see how far I will come with your tip.
Greetings!
Sebastian
C++ isnt that hard to understand I think. Its like php coded in classes for me. Or at least its similar. Not so friendly like php for example brackets must be wrote in a new line in a for-construct but its understandable.
I will see how far I will come with your tip.
Greetings!
Sebastian
#4
Posted 20 December 2008 - 12:31 PM
You better read something about C++ instead of guessing it's syntax. Brackets placement is a matter of personal tastes mostly... and readability of code.
#5
Posted 20 December 2008 - 09:18 PM
Normally I write a for-construct in php this way:
for($count = 1; $count < $zahl; $count++){
echo $count,", ";
}
Its most clearly for me for the code.
c++ wants the bracket in the next line and cant work with the bracket in the first line. I meant such things.
And for the syntax I do read the syntax in the net when it comes to such a point. Like I did for the for-constructs.
I still think c++ is similar to php coded in classes. So mostly its not hard to see what the code is for. The problem is like with every project that someone else has coded to understand how all things work together. What means that var and this function and so on. So I think reading a book about c++ wouldnt bring me much. Because the basics are similar, the differences are little and can be read in the net and the rest is to understand the program itself. I think...
Greetings!
Sebastian
for($count = 1; $count < $zahl; $count++){
echo $count,", ";
}
Its most clearly for me for the code.
c++ wants the bracket in the next line and cant work with the bracket in the first line. I meant such things.
And for the syntax I do read the syntax in the net when it comes to such a point. Like I did for the for-constructs.
I still think c++ is similar to php coded in classes. So mostly its not hard to see what the code is for. The problem is like with every project that someone else has coded to understand how all things work together. What means that var and this function and so on. So I think reading a book about c++ wouldnt bring me much. Because the basics are similar, the differences are little and can be read in the net and the rest is to understand the program itself. I think...
Greetings!
Sebastian
#6
Posted 20 December 2008 - 11:10 PM
Sebastian2, on Dec 20 2008, 10:18 PM, said:
c++ wants the bracket in the next line and cant work with the bracket in the first line.
[ eMule beba ] :: v2.72 released, v3.00 in the works ...
- feel the lightweight! - featuring Snarl support, the Client Analyzer and tits!
Coded by a Golden eMule Award winner and most people's favorite modder!
..........................................
Music, not muzak:
Progressive Rock :: my last.fm profile
..........................................
eMule user since 0.28 ...
-[ ... and thanks for all the fish! ]-
- feel the lightweight! - featuring Snarl support, the Client Analyzer and tits!
Coded by a Golden eMule Award winner and most people's favorite modder!
..........................................
Music, not muzak:
Progressive Rock :: my last.fm profile
..........................................
eMule user since 0.28 ...
-[ ... and thanks for all the fish! ]-
#7
Posted 21 December 2008 - 02:16 AM
No, C++ can handle bracket in same line , in 80000+ new lines, 95bi+ writespaces and go on...
#8
Posted 21 December 2008 - 05:55 PM
Hm. I tried it again and it worked that way... So I only thought it was the bracket. Maybe the difference was that in
for (int index=0; index<number; index++)
the var index has to be initialized with its var-type.
So never mind. My fault...
Greetings!
Sebastian
for (int index=0; index<number; index++)
the var index has to be initialized with its var-type.
So never mind. My fault...
Greetings!
Sebastian
Page 1 of 1