|
3.
|
|
|
Banana is an efficient, extendable protocol for sending and receiving s-expressions. A s-expression in this context is a list composed of byte strings, integers, large integers, floats and/or s-expressions.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
specifications/banana.xhtml:16
|
|
5.
|
|
|
The banana protocol is a stream of data composed of elements. Each element has the following general structure - first, the length of element encoded in base-128, least signficant bit first. For example length 4674 will be sent as <code>0x42 0x24</code>. For certain element types the length will be omitted (e.g. float) or have a different meaning (it is the actual value of integer elements).
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
specifications/banana.xhtml:24
|
|
128.
|
|
|
No. Releases of Twisted Core will include Zope Interfaces.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
upgrades/2.0/components.xhtml:42
|
|
148.
|
|
|
<a href="http://twistedmatrix.com/">Twisted</a> is very large. At last count, it has around 80 thousand lines of code (yes, that <em>is</em> very large for a Python project, maybe not so for a C++ project. ;). We broke it into several smaller packages with the 2.0 release.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
upgrades/2.0/split.xhtml:13
|
|
180.
|
|
|
These documents describe code changes you may need to make to use a newer version of Twisted Core. Not all releases will require code changes.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
upgrades/index.xhtml:12
|
|
1682.
|
|
|
Overview of Twisted Internet
|
|
|
type: Content of: <html><body><h1>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/internet-overview.xhtml:7 howto/internet-overview.xhtml:10
|
|
1683.
|
|
|
Twisted Internet is a collection of compatible event-loops for Python. It contains the code to dispatch events to interested observers and a portable API so that observers need not care about which event loop is running. Thus, it is possible to use the same code for different loops, from Twisted's basic, yet portable, <code>select</code>-based loop to the loops of various GUI toolkits like GTK+ or Tk.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/internet-overview.xhtml:12
|
|
1684.
|
|
|
Twisted Internet contains the various interfaces to the reactor API, whose usage is documented in the low-level chapter. Those APIs are <code class="API" base="twisted.internet.interfaces">IReactorCore</code>, <code class="API" base="twisted.internet.interfaces">IReactorTCP</code>, <code class="API" base="twisted.internet.interfaces">IReactorSSL</code>, <code class="API" base="twisted.internet.interfaces">IReactorUNIX</code>, <code class="API" base="twisted.internet.interfaces">IReactorUDP</code>, <code class="API" base="twisted.internet.interfaces">IReactorTime</code>, <code class="API" base="twisted.internet.interfaces">IReactorProcess</code>, <code class="API" base="twisted.internet.interfaces">IReactorMulticast</code> and <code class="API" base="twisted.internet.interfaces">IReactorThreads</code>. The reactor APIs allow non-persistent calls to be made.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/internet-overview.xhtml:19
|
|
1685.
|
|
|
Twisted Internet also covers the interfaces for the various transports, in <code class="API" base="twisted.internet.interfaces">ITransport</code> and friends. These interfaces allow Twisted network code to be written without regard to the underlying implementation of the transport.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/internet-overview.xhtml:32
|
|
1686.
|
|
|
The <code class="API" base="twisted.internet.interfaces">IProtocolFactory</code> dictates how factories, which are usually a large part of third party code, are written.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
howto/internet-overview.xhtml:37
|