daniel-white / mountain-cms Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/mountain-cms
Automatically exported from code.google.com/p/mountain-cms
Mountain CMS Notes Daniel A. White This is by far a very incomplete web server using pthreads and sqlite. All you need to do to compile it is call to `make`. This will build everything. To run it, execute `./mtn-cms`. No parameters are implemeted at this time. To test, run `telnet` with like this from another terminal telnet localhost 27000 To retrieve a page (only page1 and page2 exist); type `GET page1` or `GET page2` If run in succession (within the 60 time to live window), the page returned will be from cache. The pages are date stamped to show this. Once 60 seconds has elapsed, the cache is no longer used, but then the page is rebuilt and stamped. This is my basic structure. ~~ Main Thread ~~ | Open and listen for connection | On accept() unblocking | \ | | ~~ Child Thread (mtn_cms_http_worker) ~~ | \ | | Read the header | | Process the header | | Get the Page (or build it if needed) | | Build response header | | Write the response header | | Write the page data | | Close the connection | * Thread dies | Loop back and wait for another on accept() I hope this is all good for you. I am so sorry it took me so long. Some notes: I didnt write CppSqlite3 or even SQLite for that matter. Its from <http://www.codeproject.com/KB/database/CppSQLite.aspx> Have a great time in China.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.