Cleanup async client APIs.

This commit is contained in:
Chunting Gu
2019-03-07 16:02:49 +08:00
parent ffa0794926
commit 31d0ea3c9d
74 changed files with 267 additions and 2106 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ set(SRCS
add_executable(${TARGET_NAME} ${SRCS})
target_link_libraries(${TARGET_NAME} webcc pugixml ${Boost_LIBRARIES})
target_link_libraries(${TARGET_NAME} "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries(${TARGET_NAME} ${EXAMPLE_COMMON_LIBS} pugixml)
# Install VLD DLLs to build dir so that the example can be launched from
# inside VS.
+2 -2
View File
@@ -10,7 +10,7 @@
#include "example/common/book.h"
class BookClient {
public:
public:
BookClient(const std::string& host, const std::string& port);
int code() const { return code_; }
@@ -28,7 +28,7 @@ class BookClient {
// Delete a book by ID.
bool DeleteBook(const std::string& id);
private:
private:
// Call with 0 parameter.
bool Call0(const std::string& operation, std::string* result_str);