问题描述
我在G-WAN Web服务器上找到信息的唯一地方是项目网站,它看起来非常很像广告.
The only place where I found informations on G-WAN web server was the project web site and it looked very much like advertisement.
对于那些精通C的人来说,我真的知道的是,它是否易于使用和扩展其他体系结构.现在,我主要关注脚本功能.
What I would really know is, for someone who is proficient with C, if it is as easy to use and extend that other architectures. For now I would mostly focus on scripting abilities.
GWAN上的C脚本容易编写吗?您是否可以轻松地将新的C脚本更新并上传到服务器(例如,比其他体系结构上的某些PHP或Java页面更容易)?这样做时是否需要重新启动服务器?您可以使用第三方或现有的C库轻松扩展它吗?
Are C scripts on GWAN easy to write ?Can you easily update and upload new C scripts to the server (say as easily than some PHP or Java pages on other architectures) ? Do you have to restart the server when doing so ?Can you easily extend it with third party or existing C libraries ?
欢迎其他任何反馈.
推荐答案
好了,现在G-WAN在Linux下可用,我已经使用了6个月以上.
Well, now G-WAN is available under Linux, I am using it for more than 6 months.
C脚本与ANSI C完全兼容,因此对于任何经验丰富的C程序员而言都没有什么区别.
The C scripts are fully-ANSI C compatible so there is no difference for any seasonned C programmer.
要在服务器上更新它们,可以直接在/csp文件夹中(通过SSH远程)编辑它们,也可以在测试计算机上本地对其进行编辑(以后再复制它们):G-WAN在它们运行时立即重新加载脚本已在磁盘上更改(无需停止服务器).
To update them on the server, you can edit them directly in the /csp folder (remotely via SSH) or locally on a test machine (and copy them later): G-WAN reloads scripts on-the-fly when they have been changed on disk (no server stop required).
G-WAN C脚本可以使用任何现有的库(从/usr/lib下的所有库开始),而无需任何配置或接口:您只需编写"#pragma链接",后跟库名.脚本的顶部.
G-WAN C scripts can use any existing library (starting with all those under /usr/lib) without any configuration or interface: you just have to write a '#pragma link' followed by the name of the library at the top of your script.
我发现真正有用的是能够编辑C脚本并在Internet浏览器中刷新视图以查看我的代码如何工作的功能.
What I found really useful is the ability to edit C scripts and refresh the view in the Internet browser to see how my code works.
如果出现编译错误,则G-WAN会在源代码中输出该行(就像任何C编译器一样).
If there is a compilation error, then G-WAN outputs the line in the source code (just like any C compiler).
但是它进入异常区域的地方是C脚本崩溃:在这里它还会为您提供源代码中的行号(带有错误的调用和回溯).
But where it enters the extraordinary area, is when you have a C script crash: here also it gives you THE LINE NUMBER IN THE SOURCE CODE (with the faulty call and the backtrace).
当您习惯使用Apache模块时,会感到有些不可思议.
Kind of black-magic when you are used to Apache modules.
这篇关于是否有人对G-WAN Web服务器有第一手经验?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!