aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/RestClient
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/RestClient')
-rw-r--r--OpenSim/Framework/Communications/RestClient/RestClient.cs54
1 files changed, 0 insertions, 54 deletions
diff --git a/OpenSim/Framework/Communications/RestClient/RestClient.cs b/OpenSim/Framework/Communications/RestClient/RestClient.cs
index 5463134..6877690 100644
--- a/OpenSim/Framework/Communications/RestClient/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient/RestClient.cs
@@ -196,17 +196,6 @@ namespace OpenSim.Framework.Communications
196 return s.Substring(s.Length - 1, 1) == "/"; 196 return s.Substring(s.Length - 1, 1) == "/";
197 } 197 }
198 198
199// TODO: unused
200// /// <summary>
201// /// return a slash or blank. A slash will be returned if the string does not contain one
202// /// </summary>
203// /// <param name="s">stromg to be examined</param>
204// /// <returns>slash '/' if not already present</returns>
205// private string slash(string s)
206// {
207// return isSlashed(s) ? String.Empty : "/";
208// }
209
210 /// <summary> 199 /// <summary>
211 /// Build a Uri based on the initial Url, path elements and parameters 200 /// Build a Uri based on the initial Url, path elements and parameters
212 /// </summary> 201 /// </summary>
@@ -280,49 +269,6 @@ namespace OpenSim.Framework.Communications
280 } 269 }
281 } 270 }
282 271
283// TODO: unused
284// /// <summary>
285// /// Async method, invoked when the initial response if received from the server
286// /// </summary>
287// /// <param name="ar"></param>
288// private void ResponseIsReadyDelegate(IAsyncResult ar)
289// {
290// try
291// {
292// // grab response
293// WebRequest wr = (WebRequest) ar.AsyncState;
294// _response = (HttpWebResponse) wr.EndGetResponse(ar);
295
296// // get response stream, and setup async reading
297// Stream s = _response.GetResponseStream();
298// IAsyncResult asynchronousResult =
299// s.BeginRead(_readbuf, 0, BufferSize, new AsyncCallback(StreamIsReadyDelegate), s);
300
301// // TODO! Implement timeout, without killing the server
302// // wait until completed, or we timed out
303// // ThreadPool.RegisterWaitForSingleObject(asynchronousResult.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), _request, DefaultTimeout, true);
304// }
305// catch (Exception e)
306// {
307// _allDone.Set();
308// _asyncException = e;
309// }
310// }
311
312// TODO: unused
313// // Abort the request if the timer fires.
314// private static void TimeoutCallback(object state, bool timedOut)
315// {
316// if (timedOut)
317// {
318// HttpWebRequest request = state as HttpWebRequest;
319// if (request != null)
320// {
321// request.Abort();
322// }
323// }
324// }
325
326 #endregion Async communications with server 272 #endregion Async communications with server
327 273
328 /// <summary> 274 /// <summary>