RudeServer

来自开放百科 - 灰狐
跳转到: 导航, 搜索

RudeServer: Professional C++ CGI Development Libraries

Libraries

  • C++ CGI Parser Library
  • C++ Config File Library
  • C++ Socket Library
  • C++ Database Library
  • C++ Session Library
  • Sentry RBAC Library
  • Wordlet Library

http://www.rudeserver.com/

Examples

#include <rude/database.h>
#include <iostream>
using namespace std;
using namespace rude;
void doStuff(void)
{
        Database *database = Database::instance("mycontext");
        if(database->executeQuery("select * from test"))
        {
                cout << "Successful\n"
        }
        else
        {
                cout << database->getError() << "\n";
        }
}
int main(void)
{
        Database::addContext("mycontext","test","root","huihoo","localhost",3306);
        doStuff();
        Database::finish();
        return 0;
}
g++ -o testmysql testmysql.cpp /usr/lib/rudedatabase.lib /usr/lib/libmysqlclient.so

debian:/var/www/cgi-bin# ./testmysql 
Successful
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱