mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-09 07:02:41 -04:00
- added support for multiple client threads to ApiServer
- added api client which reads the password from stdin. This allows to login from the webinterface and from the terminal at the same time. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
18e29c1e65
commit
73a6ca8af6
13 changed files with 884 additions and 461 deletions
libresapi/src/api
|
@ -5,6 +5,7 @@
|
|||
namespace resource_api
|
||||
{
|
||||
// a base class for routing requests to handler methods
|
||||
// nothing is thread safe here
|
||||
class ResourceRouter
|
||||
{
|
||||
public:
|
||||
|
@ -23,6 +24,7 @@ private:
|
|||
class HandlerBase
|
||||
{
|
||||
public:
|
||||
virtual ~HandlerBase(){}
|
||||
virtual ResponseTask* handleRequest(Request& req, Response& resp) = 0;
|
||||
};
|
||||
template <class T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue