Skip to content

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
cinemast committed Oct 23, 2021
2 parents 2db84e7 + 1589428 commit d1c7aca
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 19 deletions.
4 changes: 4 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ Trevor Vannoy <[email protected]>

Ranganathan Balakrishnan <[email protected]>
+ add JSON NUMERIC data type to accept both real and integer values

Evgeny Petrov <[email protected]>
+ added data field for error handler
+
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Build example for Centos 7 (#267)
- `Json::Value` example code (#281)
- IPv6 Support for `HttpServer` (#275)
- Added data field in error handler in JS stub generator

### Fixed
- Incorrect README sections (#280)
Expand Down
2 changes: 1 addition & 1 deletion dev/artwork/overview.dia
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<dia:attribute name="text">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>#sepc.json
<dia:string>#spec.json
{
add()
}#</dia:string>
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/filedescriptorclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace jsonrpc
virtual ~FileDescriptorClient();
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
int inputfd;
int outputfd;

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/httpclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HttpClient : public IClientConnector {
void AddHeader(const std::string &attr, const std::string &val);
void RemoveHeader(const std::string &attr);

private:
protected:
std::map<std::string, std::string> headers;
std::string url;

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/linuxserialportclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace jsonrpc
*/
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
int fd;
std::string deviceName; /*!< The serial port device name on which the client should try to connect*/
/**
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/linuxtcpsocketclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace jsonrpc
*/
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
std::string hostToConnect; /*!< The hostname or the ipv4 address on which the client should try to connect*/
unsigned int port; /*!< The port on which the client should try to connect*/
/**
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/redisclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace jsonrpc
*/
void SetTimeout(long timeout);

private:
protected:

/**
* @brief Queue that we are messaging
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/tcpsocketclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace jsonrpc
*/
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
IClientConnector *realSocket; /*!< A pointer to the real implementation of this class depending of running OS*/
};

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/unixdomainsocketclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace jsonrpc
virtual ~UnixDomainSocketClient();
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
std::string path;
};

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/windowstcpsocketclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace jsonrpc
*/
virtual void SendRPCMessage(const std::string& message, std::string& result) ;

private:
protected:
std::string hostToConnect; /*!< The hostname or the ipv4 address on which the client should try to connect*/
unsigned int port; /*!< The port on which the client should try to connect*/
/**
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/filedescriptorserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FileDescriptorServer : public AbstractThreadedServer {
virtual int CheckForConnection();
virtual void HandleConnection(int connection);

private:
protected:
int inputfd;
int outputfd;
StreamReader reader;
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/linuxserialportserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class LinuxSerialPortServer : public AbstractThreadedServer {
virtual int CheckForConnection();
virtual void HandleConnection(int connection);

private:
protected:
std::string deviceName;
int serial_fd;

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/linuxtcpsocketserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LinuxTcpSocketServer : public AbstractThreadedServer {
virtual int CheckForConnection();
virtual void HandleConnection(int connection);

private:
protected:
std::string ipToBind;
unsigned int port;
int socket_fd;
Expand Down
6 changes: 3 additions & 3 deletions src/jsonrpccpp/server/connectors/redisserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ namespace jsonrpc
* @return A boolean that indicates the success or the failure of the operation.
*/
bool SendResponse(const std::string& response, const std::string& ret_queue);

private:
protected:

/**
* Callback for listening thread to start ListenLoop.
Expand All @@ -79,7 +79,7 @@ namespace jsonrpc
*/
void ListenLoop();

private:


/**
* @brief Keeps track of whether the server is running.
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/tcpsocketserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TcpSocketServer : public AbstractServerConnector {
*/
bool StopListening();

private:
protected:
AbstractServerConnector *realSocket;
};

Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/unixdomainsocketserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UnixDomainSocketServer : public AbstractThreadedServer {
virtual int CheckForConnection();
virtual void HandleConnection(int connection);

private:
protected:
std::string socket_path;
int socket_fd;
struct sockaddr_un address;
Expand Down
2 changes: 1 addition & 1 deletion src/jsonrpccpp/server/connectors/windowstcpsocketserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace jsonrpc
*/
bool SendResponse(const std::string& response, void* addInfo = NULL);

private:
protected:
bool running; /*!< A boolean that is used to know the listening state*/
std::string ipToBind; /*!< The ipv4 address on which the server should bind and listen*/
unsigned int port; /*!< The port on which the server should bind and listen*/
Expand Down
2 changes: 1 addition & 1 deletion src/stubgenerator/client/jsclientstubgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using namespace std;
callback_success(response.id, response.result);\n\
} else if (response.hasOwnProperty(\"error\")) {\n\
if (callback_error != null)\n\
callback_error(response.error.code,response.error.message);\n\
callback_error(response.error.code,response.error.message,response.error.data);\n\
} else {\n\
if (callback_error != null)\n\
callback_error(-32001, \"Invalid Server response: \" + response);\n\
Expand Down

0 comments on commit d1c7aca

Please sign in to comment.