r4453 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 12 04:22:37 EDT 2008


Author: div0
Date: 2008-09-12 04:22:27 -0400 (Fri, 12 Sep 2008)
New Revision: 4453

Modified:
   trunk/data/qcsrc/server/extensions.qh
Log:
add DP_QC_URI_GET


Modified: trunk/data/qcsrc/server/extensions.qh
===================================================================
--- trunk/data/qcsrc/server/extensions.qh	2008-09-12 05:33:24 UTC (rev 4452)
+++ trunk/data/qcsrc/server/extensions.qh	2008-09-12 08:22:27 UTC (rev 4453)
@@ -908,6 +908,18 @@
 string(string in) uri_escape = #510;
 string(string in) uri_unescape = #511;
 
+//DP_QC_URI_GET
+//idea: div0
+//darkplaces implementation: div0
+//loads text from an URL into a string
+//the following callback will receive the data and MUST exist!
+//  void(float id, float status, string data) URI_Get_Callback;
+//status is either
+//  negative for an internal error,
+//  0 for success, or
+//  the HTTP response code on server error (e.g. 404)
+float(string url, float id) uri_get = #513;
+
 //DP_SV_SPAWNFUNC_PREFIX
 //idea: div0
 //darkplaces implementation: div0




More information about the nexuiz-commits mailing list