79 lines
1.9 KiB
HTML
79 lines
1.9 KiB
HTML
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Twisted Documentation: Twisted Pair: Low-level Networking</title>
|
|
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
|
|
<body bgcolor="white">
|
|
<h1 class="title">Twisted Pair: Low-level Networking</h1>
|
|
<div class="toc"><ol><li><a href="#auto0">Overview of classes</a></li><ul><li><a href="#auto1">Transports</a></li><li><a href="#auto2">Protocols</a></li><li><a href="#auto3">Interfaces</a></li></ul></ol></div>
|
|
<div class="content">
|
|
<span/>
|
|
|
|
<p>Twisted can do low-level networking, too.</p>
|
|
|
|
<p>Here's an example that tries to show the relationships of different
|
|
classes and how data could flow for receiving packets.</p>
|
|
|
|
<pre xml:space="preserve">
|
|
FileWrapper
|
|
|
|
|
v
|
|
PcapProtocol TuntapPort
|
|
| |
|
|
+------------+
|
|
v
|
|
EthernetProtocol
|
|
|
|
|
+------------+-----------+---...
|
|
v v v
|
|
IPProtocol ARPProtocol IPv6Protocol
|
|
|
|
|
+-------------+----------------+---...
|
|
v v v
|
|
RawUDPProtocol RawICMPProtocol RawTCPProtocol
|
|
|
|
|
v
|
|
DatagramProtocol
|
|
</pre>
|
|
|
|
<p>Of course, for writing, the picture would look pretty much
|
|
identical, except all arrows would be reversed.</p>
|
|
|
|
<h2>Overview of classes<a name="auto0"/></h2>
|
|
|
|
<p>TODO</p>
|
|
|
|
<h3>Transports<a name="auto1"/></h3>
|
|
|
|
<p>TODO</p>
|
|
|
|
<ul>
|
|
<li>TuntapPort: TODO</li>
|
|
</ul>
|
|
|
|
<h3>Protocols<a name="auto2"/></h3>
|
|
|
|
<p>TODO</p>
|
|
|
|
<ul>
|
|
<li>EthernetProtocol: TODO</li>
|
|
<li>IPProtocol: TODO</li>
|
|
<li>RawUDPProtocol: TODO</li>
|
|
</ul>
|
|
|
|
<h3>Interfaces<a name="auto3"/></h3>
|
|
|
|
<p>TODO</p>
|
|
|
|
<ul>
|
|
<li>IRawDatagramProtocol: TODO</li>
|
|
<li>IRawPacketProtocol: TODO</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<p><a href="index.html">Index</a></p>
|
|
<span class="version">Version: 10.0.0</span>
|
|
</body>
|
|
</html> |