$buffer->insert(($buffer->get_end_iter), "$input\n");
},
Disconnected => sub {
$buffer->insert(($buffer->get_end_iter), "Disconnected\n");
$_[KERNEL]->delay( reconnect => 10 );
}
);
}
###
$poe_kernel-
; wrote:
> This is a straight forward Perl syntax error. Look at the arguments
> you are passing to the constructor of Client::TCP.
>
> You are essentially passing a hash made up of coderefs to use as
> callbacks, yet you don't separate entries with a comma.
>
> Just because it
int $input. "\n";
$heap->{buffer}->set_text($input);
}
);
}
###
$poe_kernel->run();
exit 0;
On Jan 4, 2008 10:02 AM, Mike Schroeder <[EMAIL PROTECTED]>
I would like to create a Gtk2 based Chat client that can be used with the
chat server on the POE cookbook. To do this I have to sort of reteach myself
on using Gtk2 in the POE loop. Currently I am trying to get the program to
create a simple window. I'm having trouble with this, the window seems to
I am trying to understand/create a chat server/client for a project. I
noticed that there is a chat server on POE Cookbook and I have been using it
as a guide as I try to understand how POE works. The problem that I'm having
is how to get the client to work. Currently I have used this code, which i