Help for this page

Select Code to Download


  1. or download this
    use feature 'state';
    use Time::HiRes;
    ...
    use Fcntl ':flock';
    use strict;
    no strict 'refs';
    
  2. or download this
    if($buffer =~ /^SENDMESSAGE$digest\|(.*?)$/){
                              my $what = $1;
    ...
                              }elsif($touser eq "" && $room eq "" && $kind
    + ne "PRVMESSAGE") { sendToSocket($message, {});
                              }
                              next;
    
  3. or download this
    sub sendToSocket {
        my( $data, $params ) = @_;
    ...
                  }
        }
    }