C 网络应用开发平台 nope.c

码农软件 · 软件分类 · 网络工具包 · 2019-02-27 09:29:19

软件介绍

nope.c 是一个超轻量级的平台,用来创建轻量快速和可伸缩的网络应用。

示例代码:

#include "server.h"
#include "nopeutils.h"

void factor(int client,const char * reqStr, const char * method);

void server(Request request)
{ 
    routefh(request,"/factor",&factor);
}

void factor(int client,const char * reqStr, const char * method) {
    char *nStr=HSCANIT(client,reqStr,"Number to factor:");

    if (strcmp(nStr,UNDEFINED)!=0) {
        long n = strtol(nStr,NULL,10);
        nprintf(client,"Factors of %li are: ", n);
        long l;
        for(l=2;l<=n;++l) {
            if(n%l==0) {
                nprintf (client,"%li ",l);
            }
        }
    }
}

本文地址:https://www.codercto.com/soft/d/230.html

Struts 2 in Action

Struts 2 in Action

Don Brown、Chad Davis、Scott Stanlick / Manning Publications / 2008.3 / $44.99

The original Struts project revolutionized Java web development and its rapid adoption resulted in the thousands of Struts-based applications deployed worldwide. Keeping pace with new ideas and trends......一起来看看 《Struts 2 in Action》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具