Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4972126
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

发布时间:2013-06-24 16:52:04

下面我们来看下验证时客户端要做了哪些事情,我还是以Demo当中的代码来进行分析,这样更容易接受,也更直观,下面就是用户登录时验证以及客户端协议类的的主要代码# 该类的方法供服务端调用class ClientRefrence(pb.Referenceable):    def remote_popupUserOnlineD.........【阅读全文】

阅读(1398) | 评论(0) | 转发(0)

发布时间:2013-06-24 16:45:19

我也是不久前刚开始自学python的,前不久刚写了个小Demo,Demo中用到了Twisted这一块,所以就自己随手记录了一下在Demo中的心得,希望对python新手有一定的帮助,同时如果在以下有讲的不对的地方,也希望博友们能指出,小弟会感激不尽。python中对客户端和服务端的通信提供了很好的支持,Twisted封装了大量有关py.........【阅读全文】

阅读(2065) | 评论(0) | 转发(0)

发布时间:2013-06-04 16:57:47

This is an example of a simple asynchronous Python web server using Twisted. This is a copy of Jp Calderone's Twisted Web in 60 seconds: handling POSTs example modified to accept a JSON payload in the POST request instead of form data. It also uses his Simple Python Web Server example to run t.........【阅读全文】

阅读(1779) | 评论(0) | 转发(0)

发布时间:2013-05-28 13:12:35

Twisted是一个功能极为强大的异步网络应用开发库——当然是Python的。印象中大概也就只有ACE有这么强悍,但Twisted在易用性方面要好很多——这其中当然少不了Python的功劳(ACE是用C++的)。但Python也有其缺点,其中之一就是因为GIL的存在使得用Python写多线程应用的意义不大,那么对于像Twisted这样基于Reactor模.........【阅读全文】

阅读(1695) | 评论(0) | 转发(0)

发布时间:2013-05-27 14:03:11

文章来自: http://blog.sina.com.cn/s/blog_6acdaf6d01014aoj.html# -*- coding: utf--8 -*-import timefrom twisted.internet import reactorfrom twisted.internet.protocol import ServerFactoryfrom twisted.protocols.basic import LineReceiver#from  twisted.........【阅读全文】

阅读(1224) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册