[kamaelia-list] Re: Submitting my own console writer for review.

2009-03-02 Thread Matt Hammond
On Mon, 02 Mar 2009 06:30:09 -, Steve unetright.thebas...@xoxy.net wrote: 7) No line continuation \ is needed inside a multiline comment . You are correct - it is not necessary - but it helps with the parsing done for the automatically generated component reference documentation on

[kamaelia-list] Bug in SingleShotHTTPClient

2009-03-02 Thread Steve
FYI SingleShotHTTPClient on windows vista goes nuts opening thousands of ports when making a connection to an address which requires name resolution and which includes a port number. SingleShotHTTPClient('http://www.google.com/') = OK SingleShotHTTPClient('http://www.google.com:8000/') = Kaboom

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Steve
Oh heck, this bug is in the underlying TCPClient! After spending days developing against localhost, I now find that I can't go live without having to do manual name resolution. :( --Steve On Mar 2, 1:39 am, Steve unetright.thebas...@xoxy.net wrote: FYI SingleShotHTTPClient on windows

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Michael Sparks
On Monday 02 March 2009 09:49:36 Steve wrote: Oh heck, this bug is in the underlying TCPClient!  After spending days developing against localhost, I now find that I can't go live without having to do manual name resolution.   That really should not be a problem (ie I've not seen that problem

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Michael Sparks
On Monday 02 March 2009 09:39:02 Steve wrote: SingleShotHTTPClient on windows vista goes nuts opening thousands of ports when making a connection to an address which requires name resolution and which includes a port number. 1 SingleShotHTTPClient('http://www.google.com/') = OK Google is

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Michael Sparks
On Monday 02 March 2009 09:49:36 Steve wrote: Oh heck, this bug is in the underlying TCPClient!  After spending days developing against localhost, I now find that I can't go live without having to do manual name resolution.  :( I've done some digging. There's definitely something odd going on

[kamaelia-list] Re: Submitting my own console writer for review.

2009-03-02 Thread Gloria W
This helped tremendously, thank you! Gloria Gloria, I'm very new to Kamaelia, but I'm going to take a stab at this: 1) If you don't inherit from threadedcomponent then your component's main function needs to be a generator. Generators use yield statements to temporarily suspend execution

[kamaelia-list] Re: Installation problem under Windows

2009-03-02 Thread Matthew Miles Clark
Michael - Thanks for taking a look at this. All in all I'm very impressed by Kamaelia and look forward to working with it. Miles On Sun, Mar 1, 2009 at 5:07 PM, Michael Sparks spark...@gmail.com wrote: Hi Miles, On Mar 1, 3:50 pm, Miles clar...@gmail.com wrote: Hi All - I had a bit

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
Matt, thanks for this response. It took me a while to get through it and make sure I understood each point. I appreciate it, comments are below. This is true, thanks. Now let's say I wanted to write to the client's console before reading anything from their console. With no other changes,

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Steve
Michael, Thank you for taking a look at this. I slimmed down my test case to just: from Kamaelia.Internet.TCPClient import TCPClient if __name__ == '__main__': TCPClient('www.google.com', 80).run() I also tested with this line instead: TCPClient('127.0.0.1', 80).run() I was thrown

[kamaelia-list] Re: Request small Code Review

2009-03-02 Thread Steve
On Mar 1, 3:43 pm, I wrote: Yes, that is indeed unusual.  I was struggling a lot with getting components to shutdown when I tell them.  The cascading conditionals Michael, I'm starting to think that this whole TTL component that I've made might be completely unneeded. I think I was just

[kamaelia-list] Bug with Unconnected UDP Peers

2009-03-02 Thread Steve
I'm running on Vista, so again maybe this is a windows specific problem. I have two different application codes that work similarly. One is a server that rotates through a range of ports. It creates a UDP Peer on a port, waits for data, and after a time sends a shutdownMicroprocess and rotates

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Michael Sparks
Hi Steve, This email may read a little odd. I've been writing this whilst reading and trying things out, saw your update, and having had a thought. As a result the train of thought changes as I go through this, but I've left that in since it may be of use. On Monday 02 March 2009 21:11:53

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Matt
On Mar 2, 8:36 pm, Gloria W strang...@comcast.net wrote: Matt, thanks for this response. It took me a while to get through it and make sure I understood each point. I appreciate it, comments are below. No problem. I've just realised another way to achieve the same effect that is probably

[kamaelia-list] Re: Bug in SingleShotHTTPClient

2009-03-02 Thread Steve
Michael, Thank you again for looking into this. Also, I don't have a lot of network code experience in python, so please take all this with ample salt. I'm beginning to think I ought to start up a windows VM and see if I can reproduce this there. I would like to see big K be well supported

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
This is really cool, and exactly what I need. I will get some time later to implement this and try it out, and I am sure I'll have more questions and comments. Thanks again for this. Gloria On Mar 2, 8:36 pm, Gloria W strang...@comcast.net wrote: Matt, thanks for this response. It took me

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
I got the carousel example working, but it sends/receives from/to the original console, not any new client which connects. I realized I can reuse the ConsoleEchoer, but somehow make it send a string to a client upon connect, and have the server process the string instead of echoing it to the