Help for this page

Select Code to Download


  1. or download this
    use IO::Socket qw( );
    
    ...
          }
       }
    }
    
  2. or download this
    sysread( $sock, $buf, 32*1024, length($buf) )
       or do { $sel->remove( $sock ); next; };
    ...
    while ( my ($msg) = $buf =~ s/^(...)// ) {
       process($msg);
    }
    
  3. or download this
    use IO::Socket qw( );
    
    ...
          }
       }
    }