[Twisted-Python] kqueue reactor

2010-09-14 Thread ruslan usifov
Which kqueue reactor in twisted is best? Twisted have kqreactor - but it need PyKQueue patched version, and PyKQueue doesn't supported Also i found https://trac.calendarserver.org/browser/CalendarServer/branches/users/glyph/use-system-twisted/kqreactor.py, but doesn't known is it possible use in

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread exarkun
On 02:00 pm, mhu...@imko.de wrote: >On Tue, Sep 14, 2010 at 3:46 PM, wrote: >>I'm not sure I understand this. What is a "Master-Slave" protocol? >>Why >>would someone not benefit from a Twisted-based implementation of such >>a >>protocol? > > >OK I'm not sure either ;-) this is why I ask. But i

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread Markus Hubig
On Tue, Sep 14, 2010 at 3:46 PM, wrote: > I'm not sure I understand this. What is a "Master-Slave" protocol? Why > would someone not benefit from a Twisted-based implementation of such a > protocol? OK I'm not sure either ;-) this is why I ask. But in my case I have the following situation: b

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread exarkun
On 01:32 pm, mhu...@imko.de wrote: >On Tue, Sep 14, 2010 at 2:08 PM, wrote: >>See the serialport examples on the website. A couple are linked from >>http://twistedmatrix.com/documents/current/core/examples/. > >The examples I found are mouse.py and gpsfix.py and there only >listening on >the ser

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread Victor Norman
Markus, I wonder if you've seen this really excellent tutorial: http://krondo.com/?page_id=1327 It is one of the finest tutorials I've seen anywhere on the web, on any topic. In fact, I think the Twisted leadership should put links to this tutorial all over their home page. While the finger "t

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread Markus Hubig
On Tue, Sep 14, 2010 at 2:08 PM, wrote: > See the serialport examples on the website. A couple are linked from > http://twistedmatrix.com/documents/current/core/examples/. > The examples I found are mouse.py and gpsfix.py and there only listening on the serial line. It seems that with twisted I

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread eulores
Here is my code for Plug 'n Play detection of serial devices. It's not yet ready for showtime, but it works with my serial attached Wacom. Best regards, eulores # -*- coding: utf-8 -*- import sys if sys.platform == 'win32': from twisted.internet import win32eventreactor win32eventreacto

Re: [Twisted-Python] Just curious about EINTR in socket.recv()

2010-09-14 Thread exarkun
On 12:29 pm, twisted-...@udmvt.ru wrote: >As far as I know, socket.recv() may raise socket.error exception >in case of error return from recv(2) system call. My system's (Linux >i386 2.6.32) >man page say there could be these error values: > > EAGAIN or EWOULDBLOCK > EBADF > ECON

[Twisted-Python] Just curious about EINTR in socket.recv()

2010-09-14 Thread Alexey
As far as I know, socket.recv() may raise socket.error exception in case of error return from recv(2) system call. My system's (Linux i386 2.6.32) man page say there could be these error values: EAGAIN or EWOULDBLOCK EBADF ECONNREFUSED EFAULT EINTR EINVAL

Re: [Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread exarkun
On 09:24 am, mhu...@imko.de wrote: >Hi @all! > >I'm trying to write a python library module for a special >serial communication protocol called IMPBUS. To use the serial >interface for sending and receiving packets as for now I'm >sub-classing pyserial. My code looks like this: > >[snip] > >But the

[Twisted-Python] Selectable SerialPort Windows/Linux

2010-09-14 Thread Markus Hubig
Hi @all! I'm trying to write a python library module for a special serial communication protocol called IMPBUS. To use the serial interface for sending and receiving packets as for now I'm sub-classing pyserial. My code looks like this: from serial import Serial, SerialExceptionfrom serial import