Building and Installing
The main dependencies are:
- The folly library from https://github.com/facebook/folly
- The fizz library from https://github.com/facebookincubator/fizz
- CMake
- OpenSSL, at least version 1.0.2+, preferably with TLS extension support.
Once folly is installed, run the following inside the wangle directory to build, test, and install wangle:
cmake .
make
ctest
sudo make install
Tutorial
There is a tutorial here that explains the basics of Wangle and shows how to build an echo server/client.
Examples
See the examples/ directory for some example Wangle servers and clients
License
Wangle is Apache 2.0-licensed.
Contributing
See the CONTRIBUTING file for how to help out.
Documentation
// close the pipeline when finished
pipeline->close();PipelineSend your socket data through a series of tubesA Pipeline is a series of Handlers that intercept inbound or outbound events, giving full control over how events are handled. Handlers can be added dynamically to the pipeline.
void read(Context* ctx, folly::IOBufQueue& q) override {
IOBufQueue data;
if (q.chainLength() >= 4) {
data.append(q.split(4));
ctx->fireRead(data);
}
}
};