diff options
Diffstat (limited to 'linden/indra/llmessage/message.cpp')
-rw-r--r-- | linden/indra/llmessage/message.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/linden/indra/llmessage/message.cpp b/linden/indra/llmessage/message.cpp index 70b8166..e2cd19b 100644 --- a/linden/indra/llmessage/message.cpp +++ b/linden/indra/llmessage/message.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file message.cpp | 2 | * @file message.cpp |
3 | * @brief LLMessageSystem class implementation | 3 | * @brief LLMessageSystem class implementation |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "linden_common.h" | 32 | #include "linden_common.h" |
@@ -38,10 +41,6 @@ | |||
38 | #include <netinet/in.h> | 41 | #include <netinet/in.h> |
39 | #include <arpa/inet.h> | 42 | #include <arpa/inet.h> |
40 | #endif | 43 | #endif |
41 | #include <stdio.h> | ||
42 | #include <stdlib.h> | ||
43 | #include <cstring> | ||
44 | #include <time.h> | ||
45 | #include <iomanip> | 44 | #include <iomanip> |
46 | #include <iterator> | 45 | #include <iterator> |
47 | #include <sstream> | 46 | #include <sstream> |
@@ -375,8 +374,8 @@ void LLMessageSystem::loadTemplateFile(const char* filename) | |||
375 | return; | 374 | return; |
376 | } | 375 | } |
377 | 376 | ||
378 | LLString template_body; | 377 | std::string template_body; |
379 | if(!LLString::read(template_body, filename)) | 378 | if(!_read_file_into_string(template_body, filename)) |
380 | { | 379 | { |
381 | llwarns << "Failed to open template: " << filename << llendl; | 380 | llwarns << "Failed to open template: " << filename << llendl; |
382 | mbError = TRUE; | 381 | mbError = TRUE; |
@@ -1155,9 +1154,11 @@ LLHTTPClient::ResponderPtr LLMessageSystem::createResponder(const std::string& n | |||
1155 | } | 1154 | } |
1156 | else | 1155 | else |
1157 | { | 1156 | { |
1158 | llwarns << "LLMessageSystem::sendMessage: Sending unreliable " | 1157 | // These messages aren't really unreliable, they just weren't |
1159 | << mMessageBuilder->getMessageName() << " message via HTTP" | 1158 | // explicitly sent as reliable, so they don't have a callback |
1160 | << llendl; | 1159 | // llwarns << "LLMessageSystem::sendMessage: Sending unreliable " |
1160 | // << mMessageBuilder->getMessageName() << " message via HTTP" | ||
1161 | // << llendl; | ||
1161 | return new LLFnPtrResponder(NULL, NULL, | 1162 | return new LLFnPtrResponder(NULL, NULL, |
1162 | mMessageBuilder->getMessageName()); | 1163 | mMessageBuilder->getMessageName()); |
1163 | } | 1164 | } |
@@ -2403,8 +2404,8 @@ void dump_prehash_files() | |||
2403 | " * @file message_prehash.h\n" | 2404 | " * @file message_prehash.h\n" |
2404 | " * @brief header file of externs of prehashed variables plus defines.\n" | 2405 | " * @brief header file of externs of prehashed variables plus defines.\n" |
2405 | " *\n" | 2406 | " *\n" |
2406 | " * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.\n" | 2407 | " * $LicenseInfo:firstyear=2003&license=viewergpl$" |
2407 | " * $License$\n" | 2408 | " * $/LicenseInfo$" |
2408 | " */\n\n" | 2409 | " */\n\n" |
2409 | "#ifndef LL_MESSAGE_PREHASH_H\n#define LL_MESSAGE_PREHASH_H\n\n"); | 2410 | "#ifndef LL_MESSAGE_PREHASH_H\n#define LL_MESSAGE_PREHASH_H\n\n"); |
2410 | fprintf( | 2411 | fprintf( |
@@ -2435,8 +2436,8 @@ void dump_prehash_files() | |||
2435 | " * @file message_prehash.cpp\n" | 2436 | " * @file message_prehash.cpp\n" |
2436 | " * @brief file of prehashed variables\n" | 2437 | " * @brief file of prehashed variables\n" |
2437 | " *\n" | 2438 | " *\n" |
2438 | " * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.\n" | 2439 | " * $LicenseInfo:firstyear=2003&license=viewergpl$" |
2439 | " * $License$\n" | 2440 | " * $/LicenseInfo$" |
2440 | " */\n\n" | 2441 | " */\n\n" |
2441 | "/**\n" | 2442 | "/**\n" |
2442 | " * Generated from message template version number %.3f\n" | 2443 | " * Generated from message template version number %.3f\n" |