Coder Social home page Coder Social logo

buddytv / bonefish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tplgy/bonefish

1.0 1.0 1.0 485 KB

C++ WAMP application router that enables building applications from loosely-coupled components.

License: Apache License 2.0

C++ 94.73% Python 2.66% CMake 2.61%

bonefish's Introduction

Bonefish

Build Status

Bonefish is an open-source C++ WAMP application router that enables building applications from loosely-coupled components. It currently supports the WAMP Basic Profile and RawSocket Transport as part of the Advanced Profile. Bonefish is capable of hosting multiple routers each with their own realm and associated set of websocket and/or rawsocket endpoints.

For more information on WAMP, see http://wamp-proto.org/

Contribute

See CONTRIBUTING.md

Dependencies

You need the following installed:

  • A C++11-compatible compiler toolchain (minimum supported versions: clang-3.4, gcc-4.8)
  • CMake
  • Boost. It uses the ASIO, system and thread components.

Getting the Code

$ git clone --recursive [email protected]:tplgy/bonefish.git

Build

Bonefish uses CMake as its build system.

To build out of the source tree (preferred):

$ mkdir bonefish-build && cd bonefish-build
$ cmake ../bonefish
$ make
$ make install

If you have the ninja build tool available, invoke cmake with the -GNinja option and then use ninja instead of make.

Deploy

You have the option to use bonefish as both an embedded library or as a standalone WAMP server.

Embedded

To understand how to integrate with bonefish as an embedded library an example has been provided:

examples/integration.cpp

To debug bonefish when it is an embedded library there is a global setting that can be turned on:

bonefish::trace::set_enabled(bool enabled)

This will enable debug tracing which is currently sent to the console. It is up to the embedder to select an appropriate mechanism for enabling and disabling debugging such as a preprocessor macro or environment variable.

Standalone

Apart from using it as an embedded library, you can also run bonefish as a standalone WAMP server:

daemon/bonefish --realm "default" --websocket-port 9999 --rawsocket-port 8888

To debug bonefish when it is run in standalone mode you can supply the optional command line switch:

daemon/bonefish --realm "default" --websocket-port 9999 --rawsocket-port 8888 --debug

This will enable debug tracing which is currently sent to the console.

Options

  • shared - if ON, bonefish will be built as a shared library. OFF implies it will be built as a static library (default).
  • stdlib - when building with Clang, you can choose libc++ (default) or libstdc++.

Third Party Libraries

Bonefish relies on the following header-only library projects:

License

Copyright 2015 Topology LP.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

bonefish's People

Contributors

afra-felix avatar davidchappelle avatar efidler avatar jpetso avatar jrogers avatar leoyanggit avatar oleh-synelnykov avatar pascal-simon avatar topologybj avatar ve3rqx avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

darky-lucera

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.