Thread Socket receive-Frage
(35 answers)
Opened by H3llGhost at 2008-06-05 17:32
Danke danke ... ;)
So nun habe ich eine vernünftige Fehlermeldung: Name "main::s_socket" used only once: possible typo at test.pl line 447. address is ****** Use of uninitialized value $g_version in concatenation (.) or string at test.pl line 260. // The Cheater Detection begins ... Can't use an undefined value as a symbol reference at test.pl line 447. Zeile 447: my $bytes = send($::s_socket, $msg, 0, $dest); Da die erste Fehlermeldung sich ja auch die Zeile vor 260 beziehen muss, habe ich mal alles gesucht mit socket und das ist das hier: Code (perl): (dl
)
1 2 3 4 5 6 7 if ($s_ip) { my $ip = $s_ip . ":"; } else { my $ip = "port "; } my $s_socket = IO::Socket::INET->new( Proto=>"udp", LocalAddr=>"$s_ip", LocalPort=>"$s_port" ) or die ("\nCan't setup UDP socket on ".my $ip.":$s_port $!\n"); |