Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a document describing how the Python code is arranged, for people…
… interested in hacking on it. Mention the use_threading option in the Connection constructor.
- Loading branch information
barryp@macbook.home
committed
Dec 1, 2008
1 parent
7fff8c9
commit 6f778d6
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
General layout of the Python code for those interested in hacking on it. | ||
------------------------------------------------------------------------ | ||
|
||
The Connection class in connection.py is the heart of the library, it | ||
opens the TCP connection, optionally wraps it in SSL, wires together | ||
the various other classes. | ||
|
||
MethodReader and MethodWriter in method_framing.py should not be visible | ||
to the amqplib user. MethodReader is where the option for threading is | ||
implemented. | ||
|
||
AMQPReader and AMQPWriter are reused it many other places within the | ||
Channel and Connection classes, not just in the layer shown below. | ||
|
||
This is the general arrangement of how the classes communicate with | ||
each other: | ||
|
||
+-----------+ +-----------+ | ||
channel.py | Channel | ... | Channel | | ||
+-----------+ +-----------+ | ||
^ ^ | ||
| | | ||
V V | ||
+--------------------------------------+ | ||
connection.py | Connection | | ||
+-------+------------------------------+ | ||
| ^ | ||
| | | ||
V | | ||
+----------------+ +--------+-------+ | ||
method_framing.py | MethodWriter | | MethodReader | | ||
+-------+--------+ +----------------+ | ||
| ^ | ||
| | | ||
V | | ||
+----------------+ +--------+-------+ | ||
serialization.py | AMQPWriter | | AMQPReader | | ||
+-------+--------+ +----------------+ | ||
| ^ | ||
| | | ||
V | | ||
+--------------------------+--+ | ||
|TCP Socket, perhaps with SSL | | ||
+-----------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters