资源简介
ARM&Linux;平台开发中,在GoAhead移植过程中需要通过Json来实现web对Arm数据的请求操作,此资源经本人详细整理,有详细的GoAhead Json开发文档及相关代码。

代码片段和文件信息
/*
* asp.c -- Active Server Page Support
*
* Copyright (c) GoAhead Software Inc. 1995-2000. All Rights Reserved.
*
* See the file “license.txt“ for usage and redistribution license requirements
*
* $Id: asp.cv 1.3 2002/10/24 14:44:50 bporter Exp $
*/
/******************************** Description *********************************/
/*
* The ASP module processes ASP pages and executes embedded scripts. It
* support an open scripting architecture with in-built support for
* Ejscript(TM).
*/
/********************************* Includes ***********************************/
#include “wsIntrn.h“
/********************************** Locals ************************************/
static sym_fd_t websAspFunctions = -1; /* Symbol table of functions */
static int aspOpenCount = 0; /* count of apps using this module */
/***************************** Forward Declarations ***************************/
static char_t *strtokcmp(char_t *s1 char_t *s2);
static char_t *skipWhite(char_t *s);
/************************************* Code ***********************************/
/*
* Create script spaces and commands
*/
int websAspOpen()
{
if (++aspOpenCount == 1) {
/*
* Create the table for ASP functions
*/
websAspFunctions = symOpen(WEBS_SYM_INIT * 2);
/*
* Create standard ASP commands
*/
websAspDefine(T(“write“) websAspWrite);
}
return 0;
}
/************************************* Code ***********************************/
/*
* Close Asp symbol table.
*/
void websAspClose()
{
if (--aspOpenCount <= 0) {
if (websAspFunctions != -1) {
symClose(websAspFunctions);
websAspFunctions = -1;
}
}
}
/******************************************************************************/
/*
* Process ASP requests and expand all scripting commands. We read the
* entire ASP page into memory and then process. If you have really big
* documents it is better to make them plain HTML files rather than ASPs.
*/
int websAspRequest(webs_t wp char_t *lpath)
{
websStatType sbuf;
char *rbuf;
char_t *token *lang *result *path *ep *cp *buf *nextp;
char_t *last;
int rc engine len ejid;
a_assert(websValid(wp));
a_assert(lpath && *lpath);
rc = -1;
buf = NULL;
rbuf = NULL;
engine = EMF_script_EJscript;
wp->flags |= WEBS_HEADER_DONE;
path = websGetRequestPath(wp);
/*
* Create Ejscript instance in case it is needed
*/
ejid = ejOpenEngine(wp->cgiVars websAspFunctions);
if (ejid < 0) {
websError(wp 200 T(“Can‘t create Ejscript engine“));
goto done;
}
ejSetUserHandle(ejid (int) wp);
if (websPageStat(wp lpath path &sbuf) < 0) {
websError(wp 200 T(“Can‘t stat %s“) lpath);
goto done;
}
/*
* Create a buffer to hold the ASP file in-memory
*/
len = sbuf.size * sizeof(char);
if ((rbuf = balloc(B_L len + 1)) == NULL) {
websError(wp 200 T(“Can‘t get memory“));
goto done;
}
rbuf[len] = ‘\0‘;
if (websPageReadData(wp rbuf len) != len) {
websError(wp 200 T(“Cant read %s“) lpath);
goto
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-11-13 18:38 GoAhead Json开发
目录 0 2012-11-13 18:40 GoAhead Json开发\GoAhead Json开发
文件 51712 2012-11-13 18:40 GoAhead Json开发\GoAhead Json开发\JSON开发文档.doc
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead
文件 12733 2012-04-17 15:11 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\.cdtproject
文件 2507 2012-07-17 16:57 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\.project
文件 7100 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\asp.c
文件 24713 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\balloc.c
文件 4413 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\ba
文件 10103 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\cgi.c
文件 15920 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\default.c
文件 3270 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\default.css
文件 1420 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\ej.h
文件 7275 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\ejIntrn.h
文件 14606 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\ejlex.c
文件 36540 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\ejparse.c
文件 22929 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\emfdb.c
文件 3110 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\emfdb.h
文件 4053 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\form.c
文件 4276 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\h.c
文件 10352 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\handler.c
文件 13605 2011-05-27 12:53 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\license.txt
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX\include
目录 0 2012-11-13 18:38 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX\include\json
文件 1382 2012-03-12 14:02 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX\include\json\arraylist.h
文件 1596 2012-03-12 14:02 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX\include\json\bits.h
文件 1091 2012-03-12 14:02 GoAhead Json开发\GoAhead Json开发\JSON模块文件\ARM\GoAhead\LINUX\include\json\debug.h
............此处省略397个文件信息
相关资源
- 基于LW IP的嵌入式串口服务器的设计与
- Notepad++ 32位 jsonview插件
- notepad++ json格式化插件
- Jsonviewer2 for Notepad++ 64 bit
-
Notepad++xm
l格式化插件和json格式化插 - 基于ARM7处理器的CAN总线网络设计
- 关于proteus仿真arm7出现错误的问题
- 基于ARM7的LCD显示电压示波系统的设计
- 基于ARM7和DSP的逆变电源设计电路
- ARM7TDMI-S在嵌入式系统中的Bootloader代码
- 基于ARM7 PWM定时器的图像传感器时序信
- 基于ARM7的分布式远程测控系统设计
- LPC2100系列ARM7微控制器加密ARM芯片
- ARM7内核的中断屏蔽方法
- 基于ARM7TDMI微处理器的矿用电子皮带秤
- 基于ARM7微处理器的中文液晶显示
- 解读ARM7内核微控制器以太网接口电路
- 基于ARM7微处理器的智能型甲烷检测器
- ARM7 GPIO LED控制实验高速GPIO与低速GP
- 基于PROTEUS的ARM7显示系统设计与仿真实
- 用ARM7和UC/OS-II设计的信号采集系统
- 一种用ARM7+UC/OS-II设计的信号采集系统
-
Volley获取json和xm
l数据解析显示 - eCharts全国及各省、市、县地图层jso
- 编译好的json_lib.lib 包含64位,32位,头
- ARM7实现指纹考勤系统硬件设计
- json格式化工具.zip
- 易语言JSON解析模块2.0源码
- echart地图 34省js及json文件 344地级js
- 全国各省市地json图
评论
共有 条评论