Re: [Twisted-Python] Client Application service.Service

2016-03-20 Thread Tim Hughes
Much appreciated. I think that has got me over that hurdle :-) Tim Hughes mailto:thug...@thegoldfish.org On 17 March 2016 at 02:21, Enrique Samson Jr. wrote: > Hi Tim, > > I think you need to keep a reference to an instance of your > MyClientProtocol. Your example does not show how you actuall

Re: [Twisted-Python] Client Application service.Service

2016-03-19 Thread Tim Hughes
Woops : accidentally sent too early Hi all, I am looking into twisted for writing a client application (bot style) and most of the examples I find are for server style applications. Looking at the finger example and https://github.com/jdavisp3/twisted-intro/blob/master/twisted-server-3/fastpoetr

Re: [Twisted-Python] Client Application service.Service

2016-03-18 Thread Enrique Samson Jr.
Hi Tim, I think you need to keep a reference to an instance of your MyClientProtocol. Your example does not show how you actually connected your bot to a server but I assume it follows on the call to load_config on startService. One way to do this: class MyService(Service): def __init__(self):