- Timestamp:
- Nov 13, 2018, 6:44:56 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etc/bp/perl
r1363 r1598 56 56 } 57 57 58 $re f= decode_json( shift );58 $req = decode_json( shift ); 59 59 60 60 ## messaging setup … … 68 68 }; 69 69 70 my $domsg = $$re f{ "_uuid" } && $$ref{ "_udpport" } && $$ref{ "_udphost" };70 my $domsg = $$req{ "_uuid" } && $$req{ "_udpport" } && $$req{ "_udphost" }; 71 71 72 72 my $sock; 73 $sock = IO::Socket::INET->new( Proto => 'udp', PeerPort => $$re f{ "_udpport" }, PeerAddr => $$ref{ "_udphost" } ) if $domsg;73 $sock = IO::Socket::INET->new( Proto => 'udp', PeerPort => $$req{ "_udpport" }, PeerAddr => $$req{ "_udphost" } ) if $domsg; 74 74 75 75 sub sendmsg { … … 81 81 if ( length( $text ) || length( $prog ) ) { 82 82 my $msg = {}; 83 $$msg{ "_uuid" } = $$re f{ "_uuid" };83 $$msg{ "_uuid" } = $$req{ "_uuid" }; 84 84 $$msg{ "_textarea" } = $text if length( $text ); 85 85 $$msg{ "_progress" } = $prog if length( $prog ); … … 118 118 print OUT "$0\n"; 119 119 print OUT "--- input ---\n"; 120 print OUT Dumper($re f);120 print OUT Dumper($req); 121 121 print OUT "--- output ---\n"; 122 122 print OUT Dumper($res);
Note: See TracChangeset
for help on using the changeset viewer.