Skip to content

Why did Firefly Use Twisted?

9miao Mobile Game edited this page Aug 6, 2014 · 1 revision

Why did Firefly Use Twisted?

1. Python-Based

Twisted is a robust object-oriented interpreted language written in Python. The use-friendly Python is prone to edit, read and run. We can run Twisted on Linux, Windows, Unix, MAC and other operation systems on account of Python's cross-platform feature.

2. Asynchronous and Event Driven

Synchronous network programming function library leaves a painful choice for developers: they are forced to permit program to lose response in network communication, or introduce sophisticated threads. Twisted is event-based asynchronous network communication framework, thereby permitting program to stay corresponding condition with no thread-using need when it handles events.

3. Multifunction

Twisted contains plenty of functions. Email, WEB, news, chat, DNS, SSH, Telnet, RPC, database access and more.

4. Flexibility

Twisted provides high level classes and allows quick start with no limitations. It also supports advanced functions and customized network protocols. Users could realize their own network protocol with the control of each byte.

5. Open Source Code

Twisted contains source code and releases in the light of function library protocol. This free framework welcomes developers using Twisted in their own program without any charge and legal issues concern. Users could directly see the source code if they want to get the knowledge of an object’s operating principle.

6. Community Support

Twisted owns an active community with members of developers and users. You can easily find many developers on the mailing list to solve your problems.

7. Integrated-Prone Platform

A Twisted program can share data among variety of services and integrate many tasks such as writing a SMTP TO XMLRPC agent, a service for updating website via SSH, or a WEB discussion group with NNTP interface. Twisted is an excellent choice when you need to exchange data between platforms.