Browse Source

Merge pull request #358 from kanoi/api

api use a dynamic io buffer, truncated before it reaches the current ~64...
Con Kolivas 13 years ago
parent
commit
d3aed9fe90
2 changed files with 326 additions and 199 deletions
  1. 11 1
      API-README
  2. 315 198
      api.c

+ 11 - 1
API-README

@@ -386,7 +386,17 @@ miner.php - an example web page to access the API
 Feature Changelog for external applications using the API:
 
 
-API V1.21
+API V1.22
+
+Enforced output limitation:
+ all extra records beyond the output limit of the API (~64k) are ignored
+  and chopped off at the record boundary before the limit is reached
+  however, JSON brackets will be correctly closed and the JSON id will be
+  set to 0 (instead of 1) if any data was truncated
+
+----------
+
+API V1.21 (cgminer v2.10.0)
 
 Added API commands:
  'usbstats'

File diff suppressed because it is too large
+ 315 - 198
api.c


Some files were not shown because too many files changed in this diff