in reply to Re: Tkx and tcp server
in thread Tkx and tcp server

Moving forward, but not all the way.
The $fh (filehandle) is not the same as $server. My error:
can not find channel named "IO::Socket::INET=GLOB(0xa119ed0)" at ./spshow_simple.pl line 24.
Offending sourcecode line: Tkx::fconfigure($server, -blocking => 0);

Thank you

Replies are listed 'Best First'.
Re^3: Tkx and tcp server
by zentara (Cardinal) on Mar 21, 2011 at 14:59 UTC
    I'm just guessing here, but you apparently still don't have the fileevent syntax correct. You still have
    Tkx::fileevent( $client, readable =>[\&handle_connection, \$client] ); # whereas the correct syntax I previously posted is Tkx::fileevent($fh, readable => [\&run_watch, $fh]);
    Notice, you have \$client as a reference instead of a plain filehandle

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
Re^3: Tkx and tcp server
by Anonymous Monk on Mar 21, 2011 at 16:49 UTC
    FWIW, there is no need to resort to the Tcl blocking method, you can use $server->blocking(0);