没什么原理吧?FastCGI 不就是打包拆包么。把 HTTP message 按 FastCGI 的协议规范装进数据包(FastCGI records, 如 FCGI_PARAMS, FCGI_STDIN, FCGI_STDOUT, FCGI_STDERR) 写入 socket ,另一端 accept 后从 socket 读数据包然后按照协议拆出数据,顺便设置环境变量啥的。
没事翻翻 Documentation 和 API/Libraries,什么都有的 http://www.fastcgi.com/drupal/node/6 在 2010年5月11日 下午7:31, <[email protected]> 写道: > > > 是啊,就是Server端的fastCGI.有些原理的东西搞不怎么明白! > > ----- 原文 ----- > 发件人: Kaiwang Chen > 主 题: Re: [PerlChina] 寻找点fast CGI 编程资料!有和TX共享一份给俺吧! > 时 间: 2010年5月11日 14:36:20 > > 恩,你说的是 webserver 那一端,我说的是应用这一端,这条连接走 FastCGI 协议 > > 陈开旺 > 2010-5-11 > > 在 2010年5月10日 下午7:15,54chen <[email protected]> 写道: >> http://www.fastcgi.com/drupal/ >> 可以用lighttpd(C++开发)来试水,特别有意思 >> http://www.lighttpd.net >> >> >> 在 2010年5月10日 下午7:03,Kaiwang Chen <[email protected]> 写道: >>> fastcgi.com 上有 fastcgi 协议规范。但一般不需要了解细节,都是用 fastcgi 库的吧,不用语言有不同实现。像 >>> php 就直接提供 request 对象了,好像。 >>> >>> 陈开旺 >>> 2010-5-10 >>> >>> 在 2010年5月10日 下午12:34, <[email protected]> 写道: >>>> 最近在研究fast CGI.网上罗列的资料很模糊,想找点这方面的资料学习fastcgi编程的知识。哪些同学的,共享一份啊,小弟在些谢过了! >>>> >>>> -- >>>> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。 >>>> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 >>>> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 >>>> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 >>>> >>> >>> -- >>> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。 >>> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 >>> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 >>> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 >>> >>> >> >> >> >> -- >> - >> http://www.54chen.com >> http://twitter.com/54chen >> >> -- >> 您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。 >> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 >> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 >> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 >> >> > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 > -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
