1
0
mirror of https://git.kore.io/kore.git synced 2024-11-16 06:56:33 +01:00
kore/examples/ktunnel
Joris Vink 4ad50caa29 Large changes to the memory subsystem in kore.
- 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.
2016-07-12 13:54:14 +02:00
..
client Indenting police 2014-10-22 20:50:32 +02:00
conf Introduce build flavors. 2016-01-27 21:29:59 +01:00
src Large changes to the memory subsystem in kore. 2016-07-12 13:54:14 +02:00
.gitignore Add KTunnel example, an anything-over-HTTPS tunnel using Kore. 2014-09-17 08:53:13 +02:00
README.md Add KTunnel example, an anything-over-HTTPS tunnel using Kore. 2014-09-17 08:53:13 +02:00

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.