updated README.md (as suggested by RevRagnarok from Reddit)
This commit is contained in:
parent
1dc61d523d
commit
34042167eb
18
README.md
18
README.md
@ -23,14 +23,14 @@ please **consider becoming a patron**:
|
|||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
`uvw` is a header-only, event based, tiny and easy to use *libuv* wrapper in
|
`uvw` is a header-only, event based, tiny and easy to use
|
||||||
modern C++.<br/>
|
[`libuv`](https://github.com/libuv/libuv) wrapper in modern C++.<br/>
|
||||||
The basic idea is to hide completely the *C-ish* interface of *libuv* behind a
|
The basic idea is to hide completely the *C-ish* interface of `libuv` behind a
|
||||||
graceful C++ API. Currently, no `uv_*_t` data structure is actually exposed by
|
graceful C++ API. Currently, no `uv_*_t` data structure is actually exposed by
|
||||||
the library.<br/>
|
the library.<br/>
|
||||||
Note that `uvw` stays true to the API of *libuv* and it doesn't add anything to
|
Note that `uvw` stays true to the API of `libuv` and it doesn't add anything to
|
||||||
its interface. For the same reasons, users of the library must follow the same
|
its interface. For the same reasons, users of the library must follow the same
|
||||||
rules who are used to follow with *libuv*.<br/>
|
rules who are used to follow with `libuv`.<br/>
|
||||||
As an example, a *handle* should be initialized before any other operation and
|
As an example, a *handle* should be initialized before any other operation and
|
||||||
closed once it is no longer in use.
|
closed once it is no longer in use.
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ int main() {
|
|||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
The main reason for which `uvw` has been written is the fact that it does not
|
The main reason for which `uvw` has been written is the fact that it does not
|
||||||
exist a valid *libuv* wrapper in C++. That's all.
|
exist a valid `libuv` wrapper in C++. That's all.
|
||||||
|
|
||||||
# Build Instructions
|
# Build Instructions
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ It's a matter of adding the following line at the top of a file:
|
|||||||
Then pass the proper `-I` argument to the compiler to add the `src` directory to
|
Then pass the proper `-I` argument to the compiler to add the `src` directory to
|
||||||
the include paths.<br/>
|
the include paths.<br/>
|
||||||
Note that users are demanded to correctly setup include directories and
|
Note that users are demanded to correctly setup include directories and
|
||||||
libraries search paths for *libuv*.
|
libraries search paths for `libuv`.
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ project, I suggest you to take a look at
|
|||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
To compile and run the tests, `uvw` requires *libuv* and *googletest*.<br/>
|
To compile and run the tests, `uvw` requires `libuv` and `googletest`.<br/>
|
||||||
`cmake` will download and compile both the libraries before to compile anything
|
`cmake` will download and compile both the libraries before to compile anything
|
||||||
else.
|
else.
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ loop->run<uvw::Loop::Mode::DEFAULT>();
|
|||||||
```
|
```
|
||||||
|
|
||||||
Available modes are: `DEFAULT`, `ONCE`, `NOWAIT`. Please refer to the
|
Available modes are: `DEFAULT`, `ONCE`, `NOWAIT`. Please refer to the
|
||||||
documentation of *libuv* for further details.
|
documentation of `libuv` for further details.
|
||||||
|
|
||||||
In order to create a resource and to bind it to the given loop, just do the
|
In order to create a resource and to bind it to the given loop, just do the
|
||||||
following:
|
following:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user