finalStringoseed=post.get("myseed","");// complete seed of the requesting peer
finalStringoseed=post.get("myseed","");// complete seed of the requesting peer
// final String youare = post.get("youare", ""); // seed hash of the target peer, used for testing network stability
// final String youare = post.get("youare", ""); // seed hash of the target peer, used for testing network stability
finalStringkey=post.get("key","");// transmission key for response
finalStringquery=post.get("query","");// a string of word hashes that shall be searched and combined
finalStringquery=post.get("query","");// a string of word hashes that shall be searched and combined
finalStringexclude=post.get("exclude","");// a string of word hashes that shall not be within the search result
finalStringexclude=post.get("exclude","");// a string of word hashes that shall not be within the search result
finalStringurls=post.get("urls","");// a string of url hashes that are preselected for the search: no other may be returned
finalStringurls=post.get("urls","");// a string of url hashes that are preselected for the search: no other may be returned
finalStringabstracts=post.get("abstracts","");// a string of word hashes for abstracts that shall be generated, or 'auto' (for maxcount-word), or '' (for none)
finalStringabstracts=post.get("abstracts","");// a string of word hashes for abstracts that shall be generated, or 'auto' (for maxcount-word), or '' (for none)
// final String fwdep = post.get("fwdep", ""); // forward depth. if "0" then peer may NOT ask another peer for more results
// final String fwden = post.get("fwden", ""); // forward deny, a list of seed hashes. They may NOT be target of forward hopping
finalintcount=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXCOUNT_DEFAULT,100),post.getInt("count",10));// maximum number of wanted results
finalintcount=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXCOUNT_DEFAULT,100),post.getInt("count",10));// maximum number of wanted results
finallongmaxtime=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXTIME_DEFAULT,3000),post.getLong("time",3000));// maximum waiting time
finallongmaxtime=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXTIME_DEFAULT,3000),post.getLong("time",3000));// maximum waiting time
finalStringB=UTF8.String(ecipher.doFinal(Base64Order.standardCoder.encodeLongSB(A.length(),2).toString().getBytes("UTF8")));// most probable not longer than 4
finalStringB=UTF8.String(this.ecipher.doFinal(Base64Order.standardCoder.encodeLongSB(A.length(),2).toString().getBytes("UTF8")));// most probable not longer than 4
finalStringC=Base64Order.standardCoder.encodeLongSB(B.length(),1).toString();// fixed length 1 (6 bits, that should be enough)
finalStringC=Base64Order.standardCoder.encodeLongSB(B.length(),1).toString();// fixed length 1 (6 bits, that should be enough)
fout.write(UTF8.getBytes(magicString));// the magic string, used to identify a 'crypt'-file
fout.write(UTF8.getBytes(magicString));// the magic string, used to identify a 'crypt'-file
fout.write(UTF8.getBytes(C));
fout.write(UTF8.getBytes(C));
@ -301,9 +301,9 @@ public class cryptbig {
fin.read(C);// the length of the following String, encoded as b64
fin.read(C);// the length of the following String, encoded as b64
publicstaticRasterPlottergetNetworkPicture(finalSeedDBseedDB,final int width,finalintheight,finalintpassiveLimit,finalintpotentialLimit,finalintmaxCount,finalintcoronaangle,finallongcommunicationTimeout,finalStringnetworkName,finalStringnetworkTitle,finalStringbgcolor,finalintcyc){
Log.logInfo("SEARCH","text snippet load time for "+page.url()+": "+snippetComputationTime+", "+(!snippet.getErrorCode().fail()?"snippet found":("no snippet found ("+snippet.getError()+")")));
Log.logInfo("SEARCH","text snippet load time for "+page.url()+": "+snippetComputationTime+", "+(!snippet.getErrorCode().fail()?"snippet found":("no snippet found ("+snippet.getError()+")")));