in reply to Client/Server sockets with TK on Win32
Also there is a faq for this at ActiveState Windows socket faq, which may have a clue for your version of Windows.
$mw ->fileevent($socket, readable => sub { my $line = <$socket>; unless (defined $line) { $mw->fileevent($socket => readable => ''); return; } $text->insert(end => $line); }); my $client; $mw->fileevent($socket, 'readable', sub { new_connection($socket) });
|
|---|