4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
use strict;
use IO::Socket;
my $socket;
my $port = 1234;
my $client;
my $data;
$socket = IO::Socket::INET->new(LocalPort => $port,
Type => SOCK_STREAM,
Reuse => 1,
Listen => 10 )
or die "konnt server auf $port nicht starten!\n";
while ($client = $socket -> accept())
{
$data = <$client>;
print "$data";
}
$socket->autoflush(1);
QuoteAs of VERSION 1.18 all IO::Socket objects have autoflush turned on by default. This was not the case with earlier releases.
4 Einträge, 1 Seite |