Help for this page

Select Code to Download


  1. or download this
    my $msg = pack("a".$maxMsgCodeLength."ia*",$msgCode, $port, $ip);
    
  2. or download this
      $msgCode = $msgCode.(" " x ($maxMsgCodeLength-length($msgCode)));
  3. or download this
    my $msg = pack( "a10ia*", $msgCode, $port, $ip );
    
  4. or download this
    my $msg = pack( "a20 i a*", $msgCode, $port, $ip );
    
  5. or download this
    printf( "%s %d %s", $msgCode, $port, $ip );
    
  6. or download this
    print getMessage ( 'StartBE', $ip, $port ), "\n";
    
    ...
        my ( $msgCode, $ip, $port) = @_;
        return pack "A10 i A*", $msgCode, $port, $ip;
    }