[Twisted-Python] Low-level networking in Twisted

Hi. Here's a patch that adds some low-level networking thingies (Ethernet, IP & UDP packet parsing; ability to read raw packets and use normal DatagramProtocols with them). I'm submitting it for review at an early stage so you can all bash me to dea^W^W^W^Wgive me guidance on how to build it. Especially look at what I did with AbstractDatagramProtocol, how the classes interact, etc. Future work: maybe checksum verification and such details. TUN/TAP interface. Pcap interface, if I can avoid writing C and still make it compatible. Worlds slowest network stack. And yes, I know about scapy. It's a nice hack and a useful tool, but doesn't really provide an API to program on. Personally, I think a twistedy low-level networking library would be a good ground to write a small UI app that does what scapy does. And if you do that, please call it twisted.pair :) ...well, the patch for too big. See http://twistedmatrix.com/~tv/lowlevel-networking.patch -- :(){ :|:&};:

On Fri, May 23, 2003 at 09:31:27PM +0300, Tommi Virtanen wrote:
As per Moshe's request, I switched from inheritance to interfaces. AbstractDatagramProtocol is still there, as I want to share code that used to be in DatagramProtocol with things that definitely aren't UDP protocols. If you have any objections, please say something fast; I will commit the code soon. http://twistedmatrix.com/~tv/lowlevel-networking-2.patch -- :(){ :|:&};:

On Fri, May 23, 2003 at 09:31:27PM +0300, Tommi Virtanen wrote:
As per Moshe's request, I switched from inheritance to interfaces. AbstractDatagramProtocol is still there, as I want to share code that used to be in DatagramProtocol with things that definitely aren't UDP protocols. If you have any objections, please say something fast; I will commit the code soon. http://twistedmatrix.com/~tv/lowlevel-networking-2.patch -- :(){ :|:&};:
participants (1)
-
Tommi Virtanen