mirror of
https://git.kore.io/kore.git
synced 2024-11-16 06:56:33 +01:00
4ad50caa29
- Change pools to use mmap() for allocating regions. - Change kore_malloc() to use pools for commonly sized objects. (split into multiple of 2 buckets, starting at 8 bytes up to 8192). - Rename kore_mem_free() to kore_free(). The preallocated pools will hold up to 128K of elements per block size. In case a larger object is to be allocated kore_malloc() will use malloc() instead. |
||
---|---|---|
.. | ||
client | ||
conf | ||
src | ||
.gitignore | ||
README.md |
KTunnel (anything over HTTPS)
This example demonstrates how we can use Kore to create an anything-over-HTTPS tunnel.
Build:
# kore build
Run:
# kore run
Test:
# openssl s_client -connect 127.0.0.1:8888
Then enter:
GET /connect?host=74.125.232.248&port=80 HTTP/1.1
Host: 127.0.0.1
GET / HTTP/1.1
Host: www.google.se
(And hit enter)
You should see Kore connect to the google server given and return the results back to you.
A client for OSX exists under the client/ directory. It requires you to link with -lssl and -lcrypto.