Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Corvusoft

@Corvusoft
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Just released the latest version of my open source project...
    C Corvusoft

    I'd love to hear any feed back regarding design, style and architecture. You can find the source at http://github.com/corvusoft/restbed. Asynchronous RESTful framework

    #include <memory>
    #include <cstdlib>
    #include <restbed>

    using namespace std;
    using namespace restbed;

    void get_method_handler( const shared_ptr< Session >& session )
    {
    const auto request = session->get_request( );

    size\_t content\_length = 0;
    request->get\_header( "Content-Length", content\_length );
    
    session->fetch( content\_length, \[ \]( const shared\_ptr< Session >& session,
                                         const Bytes& body )
    {
        fprintf( stdout, "%.\*s\\n", ( int ) body.size( ), body.data( ) );
    
        session->close( OK, "Hello, World!", { { "Content-Length", "13" } } );
    } );
    

    }

    int main( const int, const char** )
    {
    auto resource = make_shared< Resource >( );
    resource->set_path( "/resource" );
    resource->set_method_handler( "GET", get_method_handler );

    auto settings = make\_shared< Settings >( );
    settings->set\_port( 1984 );
    settings->set\_default\_header( "Connection", "close" );
    
    Service service;
    service.publish( resource );
    service.start( settings );
    
    return EXIT\_SUCCESS;
    

    }

    Was told to remove this from the C++ & Design/Architecture threads. Please let me know if this is still not the right place for this?

    Collaboration / Beta Testing c++ com design architecture performance

  • Just released the latest version of my open source project...
    C Corvusoft

    Thanks. This sounds like a great idea, will look into it this week.

    Design and Architecture c++ com design architecture performance

  • Just released the latest version of my open source project...
    C Corvusoft

    Hmmm, the 'delete' button is greyed out?!

    C / C++ / MFC com design architecture performance announcement

  • Just released the latest version of my open source project...
    C Corvusoft

    I'd love to hear any feed back regarding design, style and architecture. You can find the source at http://github.com/corvusoft/restbed. Asynchronous RESTful framework

    #include <memory>
    #include <cstdlib>
    #include <restbed>

    using namespace std;
    using namespace restbed;

    void get_method_handler( const shared_ptr< Session >& session )
    {
    const auto request = session->get_request( );

    size\_t content\_length = 0;
    request->get\_header( "Content-Length", content\_length );
    
    session->fetch( content\_length, \[ \]( const shared\_ptr< Session >& session,
                                         const Bytes& body )
    {
        fprintf( stdout, "%.\*s\\n", ( int ) body.size( ), body.data( ) );
    
        session->close( OK, "Hello, World!", { { "Content-Length", "13" } } );
    } );
    

    }

    int main( const int, const char** )
    {
    auto resource = make_shared< Resource >( );
    resource->set_path( "/resource" );
    resource->set_method_handler( "GET", get_method_handler );

    auto settings = make\_shared< Settings >( );
    settings->set\_port( 1984 );
    settings->set\_default\_header( "Connection", "close" );
    
    Service service;
    service.publish( resource );
    service.start( settings );
    
    return EXIT\_SUCCESS;
    

    }

    Was told to remove this from the C++ threads. Please let me know if this is still not the right place for this?

    Design and Architecture c++ com design architecture performance

  • Just released the latest version of my open source project...
    C Corvusoft

    Apologies, I was some what confused as to which thread this post would belong. Do you have any suggestions?

    C / C++ / MFC com design architecture performance announcement

  • Just released the latest version of my open source project...
    C Corvusoft

    I'd love to hear any feed back regarding design, style and architecture. You can find the source at http://github.com/corvusoft/restbed. Asynchronous RESTful framework

    #include <memory>
    #include <cstdlib>
    #include <restbed>

    using namespace std;
    using namespace restbed;

    void get_method_handler( const shared_ptr< Session >& session )
    {
    const auto request = session->get_request( );

    size\_t content\_length = 0;
    request->get\_header( "Content-Length", content\_length );
    
    session->fetch( content\_length, \[ \]( const shared\_ptr< Session >& session,
                                         const Bytes& body )
    {
        fprintf( stdout, "%.\*s\\n", ( int ) body.size( ), body.data( ) );
    
        session->close( OK, "Hello, World!", { { "Content-Length", "13" } } );
    } );
    

    }

    int main( const int, const char** )
    {
    auto resource = make_shared< Resource >( );
    resource->set_path( "/resource" );
    resource->set_method_handler( "GET", get_method_handler );

    auto settings = make\_shared< Settings >( );
    settings->set\_port( 1984 );
    settings->set\_default\_header( "Connection", "close" );
    
    Service service;
    service.publish( resource );
    service.start( settings );
    
    return EXIT\_SUCCESS;
    

    }

    C / C++ / MFC com design architecture performance announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups