1. bottle & fapws3

    Wed 21 July 2010
    • 装备 tags:
    • bottle
    • fapws3
    • python
    • wsgi published: true comments: true

    Bottle是一个Python web框架,兼容wsgi标准,lightweight,self-contained。

    提到web框架,自然要和相类似的python框架相比。

    Django是大型框架,包含ORM、Controller、Templating全套,这也是Django的缺点,使用Django意味着必须使用关系型数据库进行存储(尽 …

  2. Bayeux Protocol

    Sat 17 July 2010
    • 把戏 tags:
    • bayuex
    • cometd
    • http
    • websocket published: true comments: true

    运行一个CometD Demo非常简单,只要创建一个Maven项目即可(CometD Howtos): $ mvn archetype:generate -DarchetypeCatalog=http://cometd.org

    maven会提示用户选择archetype,包括cometd的版本1、版本2,jetty6、jetty7的实现,以及客户端dojo或jquery的实现。这里 …

  3. Websocket Protocol

    Fri 16 July 2010
    • 把戏 tags:
    • html5
    • http
    • jetty
    • websocket published: true comments: true

    下午用jetty的WekSocketServlet写了一个简单的WebIM程序,正好第一次瞥见WebSocket的狰容。

    服务器端
    jetty 7.1.5
    客户端
    Chromium 5.0.375.86

    通过wireshark抓包获得这样一些数据: var _ws = new WebSocket("ws://127.0.0 …

« Page 79 / 133 »