jl777
Legendary
Offline
Activity: 1176
Merit: 1134
|
|
October 28, 2014, 03:29:50 AM |
|
Well, after back to back 30+ hour work "days", I got the new architecture pretty stable. Still some kinks, but for the most part working.
New commands: { "BTCDjson", "json" } // this supports sending SuperNET API commands // there is also https access via web browser and curl and wget, so many ways to issue SuperNET API commands
{ "gotpacket", "msg", "dur", "ip_port" } // this is called when the BTCD gets a packet from one of its peers { "gotnewpeer", "ip_port" } // this is called when a new peer is discovered { "BTCDpoll" } // this mechanism is used to find out when the SuperNET wants to broadcast or narrowcast packets
{ "maketelepods", "amount", "coin" } // this creates telepods, must be multiples of 0.01 { "telepodacct", "amount", "contact", "coin", "comment", "cmd", "withdraw" } // this command displays the current set of unspent telepods, either globally, by coin, by contact. also will support withdrawing telepods to a normal address and also create credit/debit journal entries. However, only the display of all the unspent telepods has been tested
Existing commands that at least worked in some cases. // Telepathy static char *getpeers[] = { (char *)getpeers_func, "getpeers", "V", "scan", 0 }; static char *addcontact[] = { (char *)addcontact_func, "addcontact", "V", "handle", "acct", 0 }; static char *removecontact[] = { (char *)removecontact_func, "removecontact", "V", "contact", 0 }; static char *dispcontact[] = { (char *)dispcontact_func, "dispcontact", "V", "contact", 0 }; static char *telepathy[] = { (char *)telepathy_func, "telepathy", "V", "contact", "id", "type", "attach", 0 }; static char *getdb[] = { (char *)getdb_func, "getdb", "V", "contact", "id", "key", "dir", 0 };
// Kademlia DHT static char *ping[] = { (char *)ping_func, "ping", "V", "pubkey", "ipaddr", "port", "destip", 0 }; static char *pong[] = { (char *)pong_func, "pong", "V", "pubkey", "ipaddr", "port", 0 }; static char *store[] = { (char *)store_func, "store", "V", "pubkey", "key", "name", "data", 0 }; static char *findvalue[] = { (char *)findvalue_func, "findvalue", "V", "pubkey", "key", "name", "data", 0 }; static char *findnode[] = { (char *)findnode_func, "findnode", "V", "pubkey", "key", "name", "data", 0 }; // MofNfs static char *savefile[] = { (char *)savefile_func, "savefile", "V", "filename", "L", "M", "N", "backup", "password", "pin", 0 }; static char *restorefile[] = { (char *)restorefile_func, "restorefile", "V", "filename", "L", "M", "N", "backup", "password", "destfile", "sharenrs", "txids", "pin", 0 };
As you can see quite a few API's are ready to test
James
|