summaryrefslogtreecommitdiff
path: root/noncore/unsupported/ubrowser/old_chunked_algo
authormickeyl <mickeyl>2004-11-08 10:38:01 (UTC)
committer mickeyl <mickeyl>2004-11-08 10:38:01 (UTC)
commit9eaf9b69dd95fc20133f2bdff1b624ff9257c420 (patch) (side-by-side diff)
tree4bed7aad0433f50ee004828e904dbc2837715772 /noncore/unsupported/ubrowser/old_chunked_algo
parent18875a0d90d0425c066e6fa2cda81a6140fe8606 (diff)
downloadopie-9eaf9b69dd95fc20133f2bdff1b624ff9257c420.zip
opie-9eaf9b69dd95fc20133f2bdff1b624ff9257c420.tar.gz
opie-9eaf9b69dd95fc20133f2bdff1b624ff9257c420.tar.bz2
move ubroser to unsupported
Diffstat (limited to 'noncore/unsupported/ubrowser/old_chunked_algo') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/ubrowser/old_chunked_algo57
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/unsupported/ubrowser/old_chunked_algo b/noncore/unsupported/ubrowser/old_chunked_algo
new file mode 100644
index 0000000..9b4ccda
--- a/dev/null
+++ b/noncore/unsupported/ubrowser/old_chunked_algo
@@ -0,0 +1,57 @@
+readchunk:
+ if(semi != 0)
+ {
+ printf("HttpComm::incoming: semi !=0\n");
+ QString newBody = tempString;
+ if(i != 0)
+ {
+ printf("HttpComm::incoming: striping header2\n");
+ newBody.remove(0,i);
+ }
+ newBody=newBody.remove(0, semi);
+ if(newBody.length() > clength)
+ {
+ newBody.truncate(clength);
+ nextChunk = true;
+ }
+ body += newBody;
+ bRead += newBody.length();
+ printf("HttpComm::incoming: start body chunk1\n");
+ printf("%s", newBody.latin1());
+ printf("\nHttpComm::incoming: end body chunk\n");
+ printf("HttpComm::incoming: bRead: %d\n", bRead);
+ if(nextChunk)
+ {
+ QString tmpQString = tempString;
+ tmpQString=tmpQString.remove(0, clength);
+ tempString = (char *)tmpQString.latin1();
+ lengthset=false;
+ goto topchunk;
+ }
+ }
+ else
+ {
+ if( (bRead + ba) > clength)
+ {
+// int bRead2=bRead;
+ for(; bRead < clength; bRead++)
+ {
+ body+=tempString[j];
+// bRead++;
+ }
+ }
+ else
+ {
+ body += tempString;
+ bRead += ba;
+ }
+ printf("HttpComm::incoming: start body chunk2\n");
+ printf("%s", tempString);
+ printf("\nHttpComm::incoming: end body chunk\n");
+ printf("HttpComm::incoming: bRead: %d\n", bRead);
+ }
+ if(bRead >= clength)
+ {
+ printf("HttpComm::incoming: end chunk\n");
+ lengthset=false;
+ } \ No newline at end of file