Python 扭曲:从哪里开始
我正在尝试开始学习扭曲套接字服务器的创建。我想添加一些有用的功能(例如身份验证,也许还有其他一些功能)。也许有人可以给我指出一个很好的教程,这将帮助我开始(+也许还有一些其他想法)
I am trying to start learning twisted for socket servers creation. I want to add some useful features (like auth, and maybe some other). Maybe someone can point me to a good tutorial which will help me to start (+ maybe some other ideas)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请看这里:60 秒内的扭曲网络。这是一组博客文章,逐步描述了如何使用 Twisted 做许多常见的事情,全部由 Twisted 的最大贡献者 Jean-Paul Calderone 撰写。这确实是您应该开始的地方。
之后,查看 Twisted 核心文档,然后参考 API 然后进入 源代码。
玩得开心!
Look here: Twisted Web in 60 seconds. That's a group of blog posts describing step by step how to do lots of common stuff with Twisted, all written by Jean-Paul Calderone, the biggest contributor of Twisted. It's really where you should start.
After that, look at the Twisted core documentation then refer to the API and then into the source code.
Have fun!
这里有一个很棒的教程 - 通常是我发送给新 Twisty's 的教程:-)
http://krondo。 com/blog/?page_id=1327
值得记住的是,Twisted 编程更多的是一种思维范式,而不是编程范式。此外,废除客户端服务器模型也是值得的——在 Twisted 中,只有一个经纪人在任一方向与另一个经纪人交谈。
在上面之后也看看这里:
http://twistedmatrix.com/ files/current/core/howto/pb-intro.html
享受吧:-)
There's a great tutorial here - it's usually the one I send to new Twisty's :-)
http://krondo.com/blog/?page_id=1327
Its worth remembering that Twisted programming is more of a thinking paradigm than a programming one. Also, it's worth doing away with the client server model too - in Twisted there's just one broker talking in either direction to another.
Take a look here after the above too:
http://twistedmatrix.com/documents/current/core/howto/pb-intro.html
Enjoy :-)