diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmessage/llcurl.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llcurl.h | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/linden/indra/llmessage/llcurl.h b/linden/indra/llmessage/llcurl.h index 2737f6e..0c2caad 100644 --- a/linden/indra/llmessage/llcurl.h +++ b/linden/indra/llmessage/llcurl.h | |||
@@ -84,17 +84,31 @@ public: | |||
84 | return((200 <= status) && (status < 300)); | 84 | return((200 <= status) && (status < 300)); |
85 | } | 85 | } |
86 | 86 | ||
87 | virtual void error( | ||
88 | U32 status, | ||
89 | const std::string& reason, | ||
90 | const LLSD& content); | ||
91 | //< called by completed() on bad status | ||
92 | |||
87 | virtual void error(U32 status, const std::string& reason); | 93 | virtual void error(U32 status, const std::string& reason); |
88 | // called with non-200 status codes | 94 | //< called by default error(status, reason, content) |
89 | 95 | ||
90 | virtual void result(const LLSD& content); | 96 | virtual void result(const LLSD& content); |
91 | 97 | //< called by completed for good status codes. | |
92 | // Override point for clients that may want to use this class when the response is some other format besides LLSD | 98 | |
93 | virtual void completedRaw(U32 status, const std::string& reason, | 99 | virtual void completedRaw( |
94 | const LLChannelDescriptors& channels, | 100 | U32 status, |
95 | const LLIOPipe::buffer_ptr_t& buffer); | 101 | const std::string& reason, |
102 | const LLChannelDescriptors& channels, | ||
103 | const LLIOPipe::buffer_ptr_t& buffer); | ||
104 | /**< Override point for clients that may want to use this | ||
105 | class when the response is some other format besides LLSD | ||
106 | */ | ||
96 | 107 | ||
97 | virtual void completed(U32 status, const std::string& reason, const LLSD& content); | 108 | virtual void completed( |
109 | U32 status, | ||
110 | const std::string& reason, | ||
111 | const LLSD& content); | ||
98 | /**< The default implemetnation calls | 112 | /**< The default implemetnation calls |
99 | either: | 113 | either: |
100 | * result(), or | 114 | * result(), or |
@@ -120,6 +134,11 @@ public: | |||
120 | * @ brief Set certificate authority path used to verify HTTPS certs. | 134 | * @ brief Set certificate authority path used to verify HTTPS certs. |
121 | */ | 135 | */ |
122 | static void setCAPath(const std::string& path); | 136 | static void setCAPath(const std::string& path); |
137 | |||
138 | /** | ||
139 | * @ brief Return human-readable string describing libcurl version. | ||
140 | */ | ||
141 | static std::string getVersionString(); | ||
123 | 142 | ||
124 | /** | 143 | /** |
125 | * @ brief Get certificate authority file used to verify HTTPS certs. | 144 | * @ brief Get certificate authority file used to verify HTTPS certs. |