Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19973 > unrolled thread
| Started by | "Littlefield, Tyler" <tyler@tysdomain.com> |
|---|---|
| First post | 2012-02-07 11:41 -0700 |
| Last post | 2012-02-07 17:15 -0800 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
keeping twisted and wxPython in sync "Littlefield, Tyler" <tyler@tysdomain.com> - 2012-02-07 11:41 -0700
Re: keeping twisted and wxPython in sync crow <wentlv@gmail.com> - 2012-02-07 17:13 -0800
Re: keeping twisted and wxPython in sync crow <wentlv@gmail.com> - 2012-02-07 17:15 -0800
| From | "Littlefield, Tyler" <tyler@tysdomain.com> |
|---|---|
| Date | 2012-02-07 11:41 -0700 |
| Subject | keeping twisted and wxPython in sync |
| Message-ID | <mailman.5509.1328640703.27778.python-list@python.org> |
Hello all: I have a couple questions. First, is there a way to know if connectTCP failed? I am writing a client with Twisted and would like to be able to notify the user if they couldn't connect. Second, I set the protocol on my factory after a connection has been made. So when I send my user and password, that is when I connect. Is there a way to handle waiting for the connection to complete? -- Take care, Ty Web: http://tds-solutions.net The Aspen project: a light-weight barebones mud engine http://code.google.com/p/aspenmud Sent from my toaster.
[toc] | [next] | [standalone]
| From | crow <wentlv@gmail.com> |
|---|---|
| Date | 2012-02-07 17:13 -0800 |
| Message-ID | <f79afaf1-9c41-4f67-b4e9-cff8a42ab50a@lr19g2000pbb.googlegroups.com> |
| In reply to | #19973 |
On Feb 8, 2:41 am, "Littlefield, Tyler" <ty...@tysdomain.com> wrote: > Hello all: > I have a couple questions. First, is there a way to know if connectTCP > failed? I am writing a client with Twisted and would like to be able to > notify the user if they couldn't connect. > Second, I set the protocol on my factory after a connection has been > made. So when I send my user and password, that is when I connect. Is > there a way to handle waiting for the connection to complete? > > -- > > Take care, > Ty > Web:http://tds-solutions.net > The Aspen project: a light-weight barebones mud enginehttp://code.google.com/p/aspenmud > > Sent from my toaster. You can send your user & password in connectionMade() method, I think.
[toc] | [prev] | [next] | [standalone]
| From | crow <wentlv@gmail.com> |
|---|---|
| Date | 2012-02-07 17:15 -0800 |
| Message-ID | <1eccf21e-25bf-4e1c-8b44-18b6997e6f80@3g2000pbd.googlegroups.com> |
| In reply to | #19973 |
On Feb 8, 2:41 am, "Littlefield, Tyler" <ty...@tysdomain.com> wrote: > Hello all: > I have a couple questions. First, is there a way to know if connectTCP > failed? I am writing a client with Twisted and would like to be able to > notify the user if they couldn't connect. > Second, I set the protocol on my factory after a connection has been > made. So when I send my user and password, that is when I connect. Is > there a way to handle waiting for the connection to complete? > > -- > > Take care, > Ty > Web:http://tds-solutions.net > The Aspen project: a light-weight barebones mud enginehttp://code.google.com/p/aspenmud > > Sent from my toaster. And for connection failed, you can write some hook code in connectionLost() method, this method will be called when connection failed.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web