minor
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Mon, 29 Mar 2010 23:12:38 +0000 (01:12 +0200)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Mon, 29 Mar 2010 23:12:38 +0000 (01:12 +0200)
Makefile
doc/index.html
httpgw.cpp

index 8efc4ab..0e82f2a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CPPFLAGS=-g -I.
+CPPFLAGS=-O2 -I.
 
 all: swift
 
index 6fd54e5..a47e928 100644 (file)
@@ -19,7 +19,7 @@
 <div id="header">
     <img id=logo src="apusapus.png"/>
     <i>swift</i> <br/>
-    the multi-party transport protocol
+    the multiparty transport protocol
 </div>
 
 
index b79b080..9738cc1 100644 (file)
@@ -90,7 +90,7 @@ void HttpGwMayWriteCallback (SOCKET sink) {
 void HttpGwSwiftProgressCallback (int transfer, bin64_t bin) {
     for (int httpc=0; httpc<http_gw_reqs_open; httpc++)
         if (http_requests[httpc].transfer==transfer)
-            if ( (bin.offset()<<10) == http_requests[httpc].offset ) {
+            if ( (bin.base_offset()<<10) == http_requests[httpc].offset ) {
                 dprintf("%s @%i progress: %s\n",tintstr(),http_requests[httpc].id,bin.str());
                 socket_callbacks_t maywrite_callbacks
                         (http_requests[httpc].sink,NULL,HttpGwMayWriteCallback,HttpGwCloseConnection);