twisted-pair.html   [plain text]


<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><title>Twisted Documentation: Twisted Pair: Low-level Networking</title><link href="../howto/stylesheet.css" type="text/css" rel="stylesheet" /></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></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>
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"></a></h2><p>TODO</p><h3>Transports<a name="auto1"></a></h3><p>TODO</p><ul><li>TuntapPort: TODO</li></ul><h3>Protocols<a name="auto2"></a></h3><p>TODO</p><ul><li>EthernetProtocol: TODO</li><li>IPProtocol: TODO</li><li>RawUDPProtocol: TODO</li></ul><h3>Interfaces<a name="auto3"></a></h3><p>TODO</p><ul><li>IRawDatagramProtocol: TODO</li><li>IRawPacketProtocol: TODO</li></ul></div><p><a href="../howto/index.html">Index</a></p><span class="version">Version: 1.3.0</span></body></html>