libt2n: (tomj) small fix to support data transfers over 2GB
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 21 Nov 2008 09:36:46 +0000 (09:36 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 21 Nov 2008 09:36:46 +0000 (09:36 +0000)
src/command_server.cpp
src/socket_handler.cpp

index 91011fd..2e3beb5 100644 (file)
@@ -54,6 +54,7 @@ command_server::command_server(server& _s)
 void command_server::send_hello(unsigned int conn_id)
 {
     server_connection* sc=s.get_connection(conn_id);
+    // TODO: Gerd: Throw exception if get_connection() returns NULL or just return?
 
     std::ostringstream hello;
 
index b2bbcd1..91d5899 100644 (file)
@@ -267,7 +267,7 @@ bool socket_handler::fill_buffer(std::string& buffer)
 /// connection because it encapsulates the data.
 void socket_handler::socket_write(const std::string& data)
 {
-    int offset = 0;
+    unsigned int offset = 0;
     while (offset < data.size())
     {
         unsigned int write_size=write_block_size;