Thread Auf Port 514 lauschen: Ein Anfänger auf Holzwegen... (15 answers)
Opened by smallish at 2006-02-21 20:18

smallish
 2006-02-22 23:31
#37142 #37142
User since
2005-10-13
28 Artikel
BenutzerIn
[default_avatar]
[quote=Neal_the_real,22.02.2006, 10:41]

Probiers mal so:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use IO::Socket::INET;

my $socket = IO::Socket::INET -> new( LocalPort => 514,
Proto => 'udp',
Type => SOCK_DGRAM)
or die "Keine Verbindung: $!\n";

my $hello;

$socket->recv($hello, 1024, 0);

print $hello."\n";

close($socket);
[/quote]
So sieht er aus.

NACHTRAG: Funktioniert auch ohne die angabe von Type\n\n

<!--EDIT|smallish|1140644495-->

View full thread Auf Port 514 lauschen: Ein Anfänger auf Holzwegen...