[Twisted-Python] XMPP server connection question

2008-12-01 Thread Gabriel Rossetti
Hello everyone, I wrote an XMPP client and I have a question, when it tries to connect and the server is not listening, it doesn't send back an error and tries forever. I see that this function (twisted/names/srvconnect.py): def _ebGotServers(self, failure): failure.trap(DNSNameError)

Re: [Twisted-Python] When would you considering split a server application to some physical instance with different logic function?

2008-12-01 Thread Maarten ter Huurne
On Monday 01 December 2008, Peter Cai wrote: > As far as I know, some networking device manufactures use this model to > implement their routers or switches. > but I have never heard any examples besides that. The Postfix mail server uses an architecture of many small processes working together:

[Twisted-Python] /CTCP user VERSION with twisted ?

2008-12-01 Thread Rémi Boulle
Hi, I am starting using twisted with an IRC LogBot based on this ones : http://twistedmatrix.com/projects/words/documentation/examples/ircLogBot.py I customized it a little bit... When a user logs in (on the chan), I would like to send him a /CTCP user VERSION, read the reply and send onto the

Re: [Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Alessio Pace
Hi all and thanks for the replies. Apparenlty I managed to make the standalone application with bbfreeze, I still have to tune a little bit how it can pack in it also classes which are loaded dynamically, and which from a static examination of the code are not found then... I guess there will be

[Twisted-Python] When would you considering split a server application to some physical instance with different logic function?

2008-12-01 Thread Peter Cai
Hi all, First, I am sorry because it's not a question related to twisted. But since twisted is a networking programming framework, you might be interested. Some of my colleagues have a view that a net work server should be split to small parts with different functions, either with processes comm

Re: [Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Jean-Paul Calderone
On Mon, 1 Dec 2008 14:45:37 +0100, Alessio Pace <[EMAIL PROTECTED]> wrote: Hi, I'm pretty new to Python and Twisted, and I would like to know if anyone could share some experiences in creating a standalone Unix executable for a Twisted application I'm building. I would like in fact to distribut

Re: [Twisted-Python] how to design protocol.

2008-12-01 Thread Jean-Paul Calderone
On Mon, 1 Dec 2008 15:19:47 +0200, Aydın ŞEN <[EMAIL PROTECTED]> wrote: Let me explain my problem.. I am building an uploader application using twisted. I am using "Protocol" in both side. What is the best way to seperate data? When i try to call "self.transport.write(data)" it doesnt send data

Re: [Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Reza Lotun
Sorry, the latest version is http://pypi.python.org/pypi/bbfreeze/0.96.5 On Mon, Dec 1, 2008 at 1:52 PM, Reza Lotun <[EMAIL PROTECTED]> wrote: > Hi Alessio, > > I've found bbfreeze to work quite well for this: > > http://pypi.python.org/pypi/bbfreeze/0.95.4 > > Cheers, > Reza > > On Mon, Dec 1,

Re: [Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Reza Lotun
Hi Alessio, I've found bbfreeze to work quite well for this: http://pypi.python.org/pypi/bbfreeze/0.95.4 Cheers, Reza On Mon, Dec 1, 2008 at 1:45 PM, Alessio Pace <[EMAIL PROTECTED]> wrote: > Hi, > > I'm pretty new to Python and Twisted, and I would like to know if anyone > could share some ex

[Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Alessio Pace
Hi, I'm pretty new to Python and Twisted, and I would like to know if anyone could share some experiences in creating a standalone Unix executable for a Twisted application I'm building. I would like in fact to distribute my application on some Unix machines (onto which I cannot install anything)

[Twisted-Python] how to design protocol.

2008-12-01 Thread Aydın ŞEN
Let me explain my problem.. I am building an uploader application using twisted. I am using "Protocol" in both side. What is the best way to seperate data? When i try to call "self.transport.write(data)" it doesnt send data immediately, it is sending with some other datas whic i send them later. W