Giter Site home page Giter Site logo

gjl3189 / libpagekite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pagekite/libpagekite

0.0 1.0 0.0 6.18 MB

A high performance PageKite implementation in C

Home Page: https://pagekite.net/wiki/Floss/LibPageKite/

Makefile 0.82% CMake 0.13% Shell 0.01% Java 0.84% Python 3.62% M4 4.73% C 70.20% C# 16.09% Lua 1.03% C++ 2.53%

libpagekite's Introduction

libpagekite

This is a tight, fast implementation of the PageKite protocol in C, suitable for high-performance or embedded applications.

What is PageKite?

PageKite is a protocol for dynamic, tunneled reverse proxying of arbitrary TCP byte streams. It is particularly well suited for making a HTTP server on a device without a public IP address visible to the wider Internet, but can also be used for a variety of other things, including SSH access.

PageKite is usually used with the public relay service provided by https://pagekite.net/, but you can also run your own relay if you prefer; the Python relay is free software.

For more information, see http://pagekite.org/

What is in the box?

The structure is as follows:

bindings/           Library bindings for Java, Python
contrib/            Things that use libpagekite
doc/                Documentation
include/pagekite.h  The public interface of libpagekite
java-classes/       Compiled Java classes
libpagekite/        The source code
tools/              Helper scripts for building and working

In contrib/backends/ you'll find:

httpkite.c         A sample implementation of a very basic HTTP server
pagekitec.c        Basic standalone pagekite back-end connector/proxy.
sshkite.c          An example of exposing SSH over pagekite.
PageKiteTest.java  Minimal Java test connector

Getting started

To build for development on Linux, use:

$ ./autogen.sh
$ ./configure --prefix=$(pwd)
$ make install

This will build the library, placing binaries in the bin/ and lib/ subdirectories. You can then run the test connector like so:

$ export LD_LIBRARY_PATH=$(pwd)/lib
$ ./bin/pagekitec 80 http yourkite.pagekite.me 0 kitesecret

Or to run the Java test:

$ export LD_LIBRARY_PATH=$(pwd)/lib
$ cd java-classes
$ java PageKiteTest

(Note: The Java test is expected to fail because of hard-coded invalid credentials. You'll need to edit the source for it to actually work.)

Or to run the Python test:

$ export LD_LIBRARY_PATH=$(pwd)/lib
$ cd bindings/python
$ export PYTHONPATH="$(pwd);$PYTHONPATH"
$ python ./cython_demo.py 80 http yourkite.pagekite.me secret

Press CTRL+C to exit any of the test apps.

Documentation and examples

See ./configure --help for some options on how to build the library.

See the old README for hints on how some things used to be done and may still be missing from our current build processes and documentation.

State of the Onion

As of February 2016, the library's main limitations are:

The back-end connector code is however considered mature and stable; the library does a good job connecting, relaying traffic and reconnecting as necessary. The library is not currently known to crash (on Linux) or have security vulnerabilities, aside from the SSL limitation above.

License and Copyright

libpagekite is Copyright 2011-2016, The Beanstalks Project ehf.

This code is released under the Apache License 2.0, but may also be used according to the terms of the GNU Affero General Public License. Please see the file COPYING.md for details on which license applies to you.

Commercial support for this code, as well as managed front-end relay service, are available from https://pagekite.net/.

Development of this code was partially sponsored by SURFnet and the Icelandic Technology Development fund.

libpagekite's People

Contributors

bjarnirunar avatar saevaringi avatar pagekite avatar guillerodriguez avatar cbrake avatar ricardopadilha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.