Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Listening Socket in Tk

by avo (Pilgrim)
on May 11, 2005 at 09:34 UTC ( [id://455927]=note: print w/replies, xml ) Need Help??


in reply to Re: Listening Socket in Tk
in thread Listening Socket in Tk

The problem is fixed. I just found that there is this in POE's Tk Loop for Active State Perl:

$_handle_poller = $poe_main_window->after(100, [\&_poll_for_io]);

This basicaly handles events while Tk is idle, which explains everything... All I did is I've changed the after time:

$_handle_poller = $poe_main_window->after(1, [\&_poll_for_io]);

Now I have no delays of any kind... my server is responding to my client immediately. Please don't hesitate to contact me for more information on this issue. As a conclusion I would like to recommend POE for proper Server-Client application on top of Tk. The things POE does is just pure magic. I personaly think that POE rocks!
Keep the good work Rocco!!
Anyway, Thank you all for the time and the suggestions!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://455927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found