Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
OK... ignore me. I made your test program and it worked fine. So I tried connecting to my server with telnet and saw the expected message... So I checked the error function which should have been called on the client with the particular message to see it was as good as pass... Sorry for all

Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread L. Daniel Burr
Hi Chris, On March 22, 2016 at 3:09:08 PM, Chris Norman (chris.norm...@googlemail.com) wrote: Hi Daniel, [SNIP] Actually it's been added to the callback. I think my mail client wrapped the lines, but issue self.transport.LoseConnection() is the comment, so self.deferred_disconnect is added

Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
Hi Daniel, On 22/03/2016 19:49, L. Daniel Burr wrote: Hi Chris, On March 22, 2016 at 2:42:14 PM, Chris Norman (chris.norm...@googlemail.com ) wrote: Hi all, I'm sure I asked this question before, but I can't find any answers on google, and I've changed

Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread L. Daniel Burr
Hi Chris, On March 22, 2016 at 2:42:14 PM, Chris Norman (chris.norm...@googlemail.com) wrote: Hi all,  I'm sure I asked this question before, but I can't find any answers on  google, and I've changed my work flow a bit now, so thought it was worth  re-asking.  So on my server's protocol, I

[Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
Hi all, I'm sure I asked this question before, but I can't find any answers on google, and I've changed my work flow a bit now, so thought it was worth re-asking. So on my server's protocol, I have a send method. This allows me to pass arguments which get sent off to the client in the right