Coder Social home page Coder Social logo

octobanana / belle Goto Github PK

View Code? Open in Web Editor NEW
102.0 9.0 15.0 370 KB

An HTTP / Websocket library in C++17 using Boost.Beast and Boost.ASIO.

Home Page: https://octobanana.com/software/belle

License: MIT License

Shell 0.21% C++ 75.37% CMake 6.96% CSS 3.10% HTML 4.23% JavaScript 10.13%
belle http websocket boost beast asio ssl tls client server

belle's People

Contributors

octobanana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

belle's Issues

simple example not compiling

This is the first example in the README (called http.cpp here).

$ g++ -std=c++17 http.cpp -Wfatal-errors                                                                                                                 
In file included from http.cpp:1:
belle/include/belle.hh:618:24: error: ‘OB::Belle::websocket::role_type’ has not been declared
  618 |   friend void teardown(websocket::role_type,
      |                        ^~~~~~~~~

$ g++ -std=c++17 http.cpp -Wfatal-errors                                                                                                                    In file included from http.cpp:1:
belle/include/belle.hh:618:24: error: ‘OB::Belle::websocket::role_type’ has not been declared
  618 |   friend void teardown(websocket::role_type,
      |                        ^~~~~~~~~

Using Boost 1.71

Mvc pattern

Does this application implements model view controller approach .. one extra question is this project alive..

Compiler Error C2888 on Visual Studio (15.8.9)

Good morning,
I've tried to compile your library (the first, very very simple example for a http server that just echos back the request body) using microsoft visual studio (v15.8.9) and there a a lot of C2888 errors:

1> c:\dev\packages.conan\data\belle\0.9.0\auto\stable\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\belle\include\belle.hh(1201): error C2888: 'void <lambda_59fc3b57f109080765fee6635e6fcd48>::operator ()(_T1,_T2 &&) const': symbol cannot be defined within namespace 'Belle'
1> c:\dev\packages.conan\data\belle\0.9.0\auto\stable\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\belle\include\belle.hh(1216): error C2888: 'void <lambda_59fc3b57f109080765fee6635e6fcd48>::<lambda_invoker_cdecl>(_T1,_T2 &&)': symbol cannot be defined within namespace 'Belle'

=> Compiler Error C2888
'identifier' : symbol cannot be defined within namespace 'namespace'
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2888?view=vs-2017

Suggest use of clang-format

It's hard to comply to the coding style, a clang-format file would help at some points:

The "nearest" style actually seems something like

Language: Cpp
BasedOnStyle: Mozilla
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AlignTrailingComments: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
  AfterClass: true
  AfterControlStatement: true
  AfterFunction: true
  AfterNamespace: true
  AfterStruct: true
  BeforeCatch: true
  BeforeElse: true
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
ColumnLimit: 0
Cpp11BracedListStyle: true
MaxEmptyLinesToKeep: 1
SortIncludes: false

(Used whatstyle to analyze).

What do you think about adding some reasonable style format?

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.