theoreticalbts
3dc9639bdd
api_connection.hpp: Handle deserialization of null api_ptr
2016-10-26 13:17:48 -04:00
theoreticalbts
894d784523
api_connection.hpp: Rename member variable api -> _api to avoid conflicting with type name
2016-08-15 10:59:42 -04:00
theoreticalbts
5c1bb56177
Implement modular API support
...
- Create class `api_base` to be base class of `api<T>`, and `typedef shared_ptr<api_base> api_ptr`
- Create function `api_base::as<T>()` to allow simple downcast to `api<T>`
- Create class `any_api` to contain an API which has been returned from the remote end, but not yet cast with `as<T>`
- `to_generic()` override allowing remote API to return `api_ptr`, thus we need not know the type of the returned API at compile time
- Allow API's to be referenced by name, if we call with a string API name in the JSON the framework calls get_api_by_name on API 1 to determine the API ID
2016-04-04 00:50:56 -04:00
theoreticalbts
cb006ba03c
api_connection.hpp: Possibly fix previous commit, see https://github.com/cryptonomex/graphene/issues/232
2015-08-12 13:45:33 -04:00
theoreticalbts
3cd9ed4386
api_connection.hpp: Properly lock connection object for callbacks
2015-08-10 15:17:21 -04:00
Daniel Larimer
e9eeb3300c
adding tab completion to CLI
2015-07-27 09:11:20 -04:00
Daniel Larimer
994c4097fa
fix build
2015-05-28 08:43:43 -04:00
Daniel Larimer
5dabe6ba2c
better error messages
2015-05-06 16:37:38 -04:00
Daniel Larimer
4df08d8efe
fix crash in websocket
2015-05-06 16:34:55 -04:00
Daniel Larimer
257ac52b91
fix build issue
2015-04-01 11:30:47 -04:00
Daniel Larimer
c8200afade
better close notification and error handling
2015-04-01 10:25:57 -04:00
Daniel Larimer
55ee57040a
added support for unhandled extension and mapping the first registered API to global namespace
2015-03-31 17:45:01 -04:00
Daniel Larimer
1fb31737a7
RPC now supports remote callbacks
...
to_variant now skips null optional members on reflected objects.
2015-03-31 11:31:56 -04:00
Daniel Larimer
09e645448d
add support for void return
2015-03-30 14:08:26 -04:00
Daniel Larimer
94faa4e362
add support for const ref params and fix bugs with implict variant conversion
2015-03-30 14:05:21 -04:00
Daniel Larimer
74b707999c
fix bugs with websocket and integrate API support
2015-03-27 16:29:33 -04:00
Daniel Larimer
7008d1419a
adding websocket api stub
2015-03-26 18:38:43 -04:00
Nathan Hourt
3b6f2978b0
Cleanup API code
2015-03-11 11:15:11 -04:00
Daniel Larimer
171eb212cd
refactor api_client and api_server into api_connection and add JSON impl
2015-03-11 10:49:30 -04:00