Giter VIP home page Giter VIP logo

demoniac's Introduction

Demoniac

Build Status GPLV2 Join the chat at https://gitter.im/neveralso/Demoniac

Demoniac is a C++ web framework and asynchronous networking library. By using non-blocking network I/O, Demoniac can scale to tens of thousands of open connections.

Demoniac is available on *nix system.

Hello, Wrold

#include <iostream>
#include "Demoniac.h"

class MainHandler: dc::RequestHandler {
public:
	dc::Response get() {
		return "Hello, GFW";
	}
};

int main() {
	dc::Application app;
	app.listen(8888)
	app.add_handler<MainHandler>("/");
	dc::IOLoop::Current()->Start();
}

##First example is available

Has been tested on :

  • Mac OS X 10.10.2 : (Apple LLVM version 6.0)

  • Ubuntu 14.10 : (g++ (Ubuntu 4.9.1-16ubuntu6) 4.9.1)

  • FreeBSD 10.1 : (FreeBSD clang version 3.4.1)

git clone https://github.com/neveralso/Demoniac.git
cd Demoniac
cmake .
make
cd example
make
./echo_server.out

then

telnet 127.0.0.1 8000

have fun~~~

#STILL IN DEVELOPING โ†’_โ†’

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.