report server address and port
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 17 Dec 2009 00:06:42 +0000 (01:06 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 17 Dec 2009 00:06:42 +0000 (01:06 +0100)
lib/SIP2/SC.pm

index ca5be3f..e4fb42c 100644 (file)
@@ -21,6 +21,7 @@ sub new {
        my $class = shift;
        my $self;
        $self->{sock} = IO::Socket::INET->new( @_ ) || die "can't connect to ", dump(@_), ": $!";
+       warn "# connected to ", $self->{sock}->peerhost, ":", $self->{sock}->peerport, "\n";
        bless $self, $class;
        $self;
 }