in reply to Printing to all clients on a socket from a child process
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" }
|
|---|