47 |
|
|
48 |
confess "need sock" unless $self->sock; |
confess "need sock" unless $self->sock; |
49 |
|
|
50 |
|
$self->debug( 0 ) unless $self->debug; |
51 |
|
|
52 |
warn "created ", __PACKAGE__, "(", dump( @_ ), ") for ", $self->sock->peerhost, "\n" if $self->debug; |
warn "created ", __PACKAGE__, "(", dump( @_ ), ") for ", $self->sock->peerhost, "\n" if $self->debug; |
53 |
|
|
54 |
$self->store( CWMP::Store->new({ |
$self->store( CWMP::Store->new({ |
74 |
|
|
75 |
my $sock = $self->sock || die "no sock?"; |
my $sock = $self->sock || die "no sock?"; |
76 |
|
|
77 |
die "not IO::Socket::INET but ", ref( $sock ) unless ( ref($sock) eq 'IO::Socket::INET' ); |
die "not IO::Socket::INET but ", ref( $sock ) unless ( ref($sock) eq 'Net::Server::Proto::TCP' ); |
78 |
|
|
79 |
if ( ! $sock->connected ) { |
if ( ! $sock->connected ) { |
80 |
warn "SOCKET NOT CONNECTED\n"; |
warn "SOCKET NOT CONNECTED\n"; |