-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update doc & clear connection on error for #24
- Loading branch information
Showing
6 changed files
with
57 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,12 @@ | |
|
||
## Configure vcpkg | ||
|
||
libfv depends on the VCPKG environment. Therefore, you need to configure it before using libfv. | ||
First install `libfv` through `vcpkg` | ||
|
||
``` | ||
# Installing dependency packages | ||
vcpkg install asio fmt gzip-hpp nlohmann-json openssl zlib | ||
# `asio` can be changed to `boost-asio` | ||
vcpkg install fawdlstty-libfv | ||
``` | ||
|
||
## Configure libfv | ||
|
||
First, clone the libfv repository | ||
|
||
``` | ||
git clone [email protected]:fawdlstty/libfv.git | ||
``` | ||
|
||
Then add the include folder in the repository to your project's header search path. If this step does not work, copy the `include/fv` folder from the repository into your project and reference it later via `#include "fv/fv.hpp"`. | ||
|
||
## Initialize | ||
|
||
```cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,12 @@ | |
|
||
## 配置 `vcpkg` 环境 | ||
|
||
libfv 依赖 vcpkg 环境,因此在使用 libfv 之前需配置 | ||
首先通过 `vcpkg` 安装 `libfv` | ||
|
||
``` | ||
# 安装依赖包 | ||
vcpkg install asio fmt gzip-hpp nlohmann-json openssl zlib | ||
# `asio` 可换成 `boost-asio` | ||
vcpkg install fawdlstty-libfv | ||
``` | ||
|
||
## 配置 libfv 环境 | ||
|
||
首先克隆 libfv 仓库 | ||
|
||
``` | ||
git clone [email protected]:fawdlstty/libfv.git | ||
``` | ||
|
||
然后将仓库内 include 文件夹添加到你的项目的头文件搜索路径。如果这步不会,那么将仓库内 `include/fv` 文件夹拷贝到你的项目内,后续通过 `#include "fv/fv.hpp"` 引用即可。 | ||
|
||
## 初始化 | ||
|
||
```cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters