Re: [Twisted-Python] RTFM about custom reactors

2009-05-04 Thread Mohamed Lrhazi
On Mon, May 4, 2009 at 2:08 PM, Itamar Shtull-Trauring wrote: > The  reactor does low-level network events, like TCP reads, not > high-level plugins. What would these plugins do exactly? > The Network OS acts as proxy, at the IP level, but also implements several protocols, including http. It als

Re: [Twisted-Python] RTFM about custom reactors

2009-05-04 Thread Itamar Shtull-Trauring
On Mon, 2009-05-04 at 02:15 -0400, Mohamed Lrhazi wrote: > Hello all, > > I was wondering if someone could point me in the right direction > > I am attempting to connect a proprietary network OS plugin system to > Python, to allow for writing traffic handling plugins in Python, and > was wond

[Twisted-Python] sending out RAW IP packets using sockets

2009-05-04 Thread Lars Reimann
hello, this question may be a bit off-topic, but nevertheless I am stuck atm. I'm trying to send out RAW IP packets (incl. full header) which i obtained previously using packet capture. It has to be RAW IP packets because I want the kernel to do ARP lookup stuff, etc for me . So an obtained pack

Re: [Twisted-Python] addCallback0 convenience method

2009-05-04 Thread Drew Smathers
On Mon, May 4, 2009 at 6:26 AM, Terry Jones wrote: > There are two minor niggles I frequently run into when writing code with > deferreds and callbacks: > >  1. I very often write callbacks that ignore the incoming result: I tend to >    write this as def cb(_): ... > >  2. I sometimes write funct

[Twisted-Python] design question

2009-05-04 Thread Pet
Hi, I've written my first Twisted Server, which accept request from clients, does DB queries, sends response back and logs some events in DB. I wonder, if my design was good. Basically, I have a Factory where is db connectionPool created and Protocol(basic.LineReceiver), which processes requests

[Twisted-Python] addCallback0 convenience method

2009-05-04 Thread Terry Jones
There are two minor niggles I frequently run into when writing code with deferreds and callbacks: 1. I very often write callbacks that ignore the incoming result: I tend to write this as def cb(_): ... 2. I sometimes write functions that I want to call both from within a callback chain