雪中的紫诺 发表于 2013-04-27 10:42

嵌入式板上的cgic+boa软件架构怎么搭建?

cigc程序和我的主程序(采集程序和控制算法等)怎么去衔接呢? 放置到一起?还是怎么个独立法?

T-Bagwell 发表于 2013-04-27 16:32

cgi就像是本地应用程序一样,直接将反馈的结果print到stdout既可

雪中的紫诺 发表于 2013-04-27 23:25

T-Bagwell 发表于 2013-04-27 16:32 static/image/common/back.gif
cgi就像是本地应用程序一样,直接将反馈的结果print到stdout既可


cgi把配置信息写到数据库了,主程序去读数据库,就是通过数据库做中转......................

T-Bagwell 发表于 2013-04-28 06:40

如果不考虑并发量的话,读数据库也可以稍微等一小会的

daniel_kohler 发表于 2013-04-28 09:00

回复 1# 雪中的紫诺


    http://bbs.chinaunix.net/thread-4057942-1-1.html

FMA19 发表于 2013-04-28 13:01

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>

#include "cgic.h"

int cgiMain(void)
{
   //your code
}写代码的话就是这么个流程。
具体cgic的函数API可以google
页: [1]
查看完整版本: 嵌入式板上的cgic+boa软件架构怎么搭建?