Basic plumbing for authentication requirement and piping through of URL information.
This commit is contained in:
parent
9c58308e6a
commit
b270d527f4
13 changed files with 124 additions and 13 deletions
|
@ -38,7 +38,8 @@ public:
|
|||
NC_ERROR_NONE = 0,
|
||||
NC_ERROR_OBJECT_NOT_FOUND = 1,
|
||||
NC_ERROR_ACCESS_DENIED = 2,
|
||||
NC_ERROR_INTERNAL_SERVER_ERROR = 3
|
||||
NC_ERROR_INTERNAL_SERVER_ERROR = 3,
|
||||
NC_ERROR_AUTHENTICATION_REQUIRED = 4
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -69,12 +70,17 @@ public:
|
|||
/**
|
||||
* Send a network configuration request error
|
||||
*
|
||||
* If errorData/errorDataSize are provided they must point to a valid serialized
|
||||
* Dictionary containing error data. They can be null/zero if not specified.
|
||||
*
|
||||
* @param nwid Network ID
|
||||
* @param requestPacketId Request packet ID or 0 if none
|
||||
* @param destination Destination peer Address
|
||||
* @param errorCode Error code
|
||||
* @param errorData Data associated with error or NULL if none
|
||||
* @param errorDataSize Size of errorData in bytes
|
||||
*/
|
||||
virtual void ncSendError(uint64_t nwid,uint64_t requestPacketId,const Address &destination,NetworkController::ErrorCode errorCode) = 0;
|
||||
virtual void ncSendError(uint64_t nwid,uint64_t requestPacketId,const Address &destination,NetworkController::ErrorCode errorCode, const void *errorData, unsigned int errorDataSize) = 0;
|
||||
};
|
||||
|
||||
NetworkController() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue