From: Thomas Jarosch Date: Fri, 21 Nov 2008 09:36:46 +0000 (+0000) Subject: libt2n: (tomj) small fix to support data transfers over 2GB X-Git-Tag: v0.5~14 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=4b995a82e29808cf8125889f83ec70fc7b5c77af libt2n: (tomj) small fix to support data transfers over 2GB --- diff --git a/src/command_server.cpp b/src/command_server.cpp index 91011fd..2e3beb5 100644 --- a/src/command_server.cpp +++ b/src/command_server.cpp @@ -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; diff --git a/src/socket_handler.cpp b/src/socket_handler.cpp index b2bbcd1..91d5899 100644 --- a/src/socket_handler.cpp +++ b/src/socket_handler.cpp @@ -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;