in reply to Re: thread:shared
in thread thread:shared
sends the $ID to all the Clients and there it has absolutely no meaning.print $socket $chat[$i], $EOL if ( $1 ne $ID && $2 ne $kill);
and the Writer should remove this ID:(little changed)push @chat, "$self->{ID}\t$1";
So a Writer does not sendforeach ( @chat[$E{$ID} .. $#chat] ) { # spilt into ID and incomming line /(.+?)\s(.+)[\n\r]*/; # send only line print $socket $2,$EOL if ( $1 ne $ID && $2 ne $kill); }
Well, when I removed my stupid bug (look at the code,print $socket $2,$EOL if ( $2 ne $kill );
(valid until I get tooo much spam.)g o o l y @ g m x . a t
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: thread:shared
by zentara (Cardinal) on Dec 18, 2003 at 14:28 UTC | |
by Anonymous Monk on Dec 18, 2003 at 17:48 UTC | |
by zentara (Cardinal) on Dec 21, 2003 at 14:22 UTC | |
by Anonymous Monk on Dec 18, 2003 at 14:53 UTC |