diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/message.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/linden/indra/llmessage/message.h b/linden/indra/llmessage/message.h index 00abff4..8807521 100644 --- a/linden/indra/llmessage/message.h +++ b/linden/indra/llmessage/message.h | |||
@@ -283,8 +283,9 @@ public: | |||
283 | 283 | ||
284 | public: | 284 | public: |
285 | // Read file and build message templates | 285 | // Read file and build message templates |
286 | LLMessageSystem(const char *filename, U32 port, S32 version_major, | 286 | LLMessageSystem(const std::string& filename, U32 port, S32 version_major, |
287 | S32 version_minor, S32 version_patch); | 287 | S32 version_minor, S32 version_patch, |
288 | bool failure_is_fatal = true); | ||
288 | 289 | ||
289 | ~LLMessageSystem(); | 290 | ~LLMessageSystem(); |
290 | 291 | ||
@@ -294,7 +295,7 @@ public: | |||
294 | // Read file and build message templates filename must point to a | 295 | // Read file and build message templates filename must point to a |
295 | // valid string which specifies the path of a valid linden | 296 | // valid string which specifies the path of a valid linden |
296 | // template. | 297 | // template. |
297 | void loadTemplateFile(const char* filename); | 298 | void loadTemplateFile(const std::string& filename, bool failure_is_fatal); |
298 | 299 | ||
299 | 300 | ||
300 | // methods for building, sending, receiving, and handling messages | 301 | // methods for building, sending, receiving, and handling messages |
@@ -515,6 +516,8 @@ public: | |||
515 | void getIPPort( const char *block, const char *var, U16 &port, S32 blocknum = 0); | 516 | void getIPPort( const char *block, const char *var, U16 &port, S32 blocknum = 0); |
516 | void getStringFast( const char *block, const char *var, S32 buffer_size, char *buffer, S32 blocknum = 0); | 517 | void getStringFast( const char *block, const char *var, S32 buffer_size, char *buffer, S32 blocknum = 0); |
517 | void getString( const char *block, const char *var, S32 buffer_size, char *buffer, S32 blocknum = 0); | 518 | void getString( const char *block, const char *var, S32 buffer_size, char *buffer, S32 blocknum = 0); |
519 | void getStringFast( const char *block, const char *var, std::string& outstr, S32 blocknum = 0); | ||
520 | void getString( const char *block, const char *var, std::string& outstr, S32 blocknum = 0); | ||
518 | 521 | ||
519 | 522 | ||
520 | // Utility functions to generate a replay-resistant digest check | 523 | // Utility functions to generate a replay-resistant digest check |
@@ -764,16 +767,17 @@ extern LLMessageSystem *gMessageSystem; | |||
764 | 767 | ||
765 | // Must specific overall system version, which is used to determine | 768 | // Must specific overall system version, which is used to determine |
766 | // if a patch is available in the message template checksum verification. | 769 | // if a patch is available in the message template checksum verification. |
767 | // Return TRUE if able to initialize system. | 770 | // Return true if able to initialize system. |
768 | BOOL start_messaging_system( | 771 | bool start_messaging_system( |
769 | const std::string& template_name, | 772 | const std::string& template_name, |
770 | U32 port, | 773 | U32 port, |
771 | S32 version_major, | 774 | S32 version_major, |
772 | S32 version_minor, | 775 | S32 version_minor, |
773 | S32 version_patch, | 776 | S32 version_patch, |
774 | BOOL b_dump_prehash_file, | 777 | bool b_dump_prehash_file, |
775 | const std::string& secret, | 778 | const std::string& secret, |
776 | const LLUseCircuitCodeResponder* responder = NULL); | 779 | const LLUseCircuitCodeResponder* responder = NULL, |
780 | bool failure_is_fatal = true); | ||
777 | 781 | ||
778 | void end_messaging_system(); | 782 | void end_messaging_system(); |
779 | 783 | ||