mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Merge pull request #1624 from csoler/v0.6-RetroshareService
V0.6 retroshare service
This commit is contained in:
commit
4f4b3bfcdb
14 changed files with 660 additions and 209 deletions
|
@ -52,6 +52,8 @@ extern JsonApiServer* jsonApiServer;
|
|||
*/
|
||||
struct JsonApiServer : RsSingleJobThread, p3Config
|
||||
{
|
||||
static const uint16_t DEFAULT_PORT = 9092 ;
|
||||
|
||||
/**
|
||||
* @brief construct a JsonApiServer instance with given parameters
|
||||
* @param[in] port listening port fpt the JSON API socket
|
||||
|
@ -62,7 +64,7 @@ struct JsonApiServer : RsSingleJobThread, p3Config
|
|||
* false otherwise, this usually requires user interacion to confirm access
|
||||
*/
|
||||
JsonApiServer(
|
||||
uint16_t port = 9092,
|
||||
uint16_t port = DEFAULT_PORT,
|
||||
const std::string& bindAddress = "127.0.0.1",
|
||||
const std::function<bool(const std::string&)> newAccessRequestCallback = [](const std::string&){return false;} );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue