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

smallish
 2006-02-21 20:42
#37131 #37131
User since
2005-10-13
28 Artikel
BenutzerIn
[default_avatar]
Danke, habs jetzt so versucht:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;
use IO::Socket::INET;

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

my $hello;
until (defined $hello) {
$hello = <$socket>
}

print $hello;

close($socket);

Output:
Code: (dl )
Keine Verbindung: 


funktioniert troztdem nicht...\n\n

<!--EDIT|smallish|1140547505-->

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