So all you would need to do is create another thread for your keepalive signal, and put in it
foreach my $fn (@clients) { open my $fh, ">&=$fn" or warn $! and die; print $fh "keepalive\n" }
In reply to Re: Printing to all clients on a socket from a child process
by zentara
in thread Printing to all clients on a socket from a child process
by Fredde87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |