Mailinglist Archive: opensuse-de (1203 mails)
| < Previous | Next > |
Re: Frage an Netzwerkprogrammierer (TCP connect timeout)
- From: Andre Heine <andre@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 25 Sep 2008 15:40:35 +0200
- Message-id: <200809251540.35699.andre@xxxxxxxxxxxxxxxxxxx>
Moin,
ich nochmal...
Am Donnerstag, 25. September 2008 15:21 schrieb Andre Heine:
[...]
Unter Linux funktioniert das mit dem Timeout jedenfalls.
#!/usr/bin/env perl
use IO::Socket;
use IO::Socket::INET;
use strict;
my $socket = new IO::Socket::INET (
PeerAddr => '128.0.0.1', PeerPort => 25,
Timeout => 50,
Type => SOCK_STREAM,
);
die "Unable to open connection: $!\n"
unless defined $socket;
Ciao
andre
--
All other things being equal, a bald man cannot be elected President of
the United States.
-- Vic Gold
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe@xxxxxxxxxxxx
Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken
Sie eine Mail an: opensuse-de+help@xxxxxxxxxxxx
ich nochmal...
Am Donnerstag, 25. September 2008 15:21 schrieb Andre Heine:
[...]
Vielleicht hilft das weiter...
perldoc IO::Socket::INET
Unter Linux funktioniert das mit dem Timeout jedenfalls.
#!/usr/bin/env perl
use IO::Socket;
use IO::Socket::INET;
use strict;
my $socket = new IO::Socket::INET (
PeerAddr => '128.0.0.1', PeerPort => 25,
Timeout => 50,
Type => SOCK_STREAM,
);
die "Unable to open connection: $!\n"
unless defined $socket;
Ciao
andre
--
All other things being equal, a bald man cannot be elected President of
the United States.
-- Vic Gold
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe@xxxxxxxxxxxx
Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken
Sie eine Mail an: opensuse-de+help@xxxxxxxxxxxx
| < Previous | Next > |