Changeset 735
- Timestamp:
- 12/20/06 17:03:58 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DJabberd/lib/DJabberd/Component/External.pm
r730 r735 41 41 use DJabberd::Log; 42 42 use DJabberd::Util qw(exml); 43 use DJabberd::Co mponent::External::Connection;43 use DJabberd::Connection::ComponentIn; 44 44 use IO::Socket::UNIX; 45 45 use IO::Socket::INET; … … 178 178 } 179 179 180 my $connection = DJabberd::Co mponent::External::Connection->new($csock, $vhost->server, $self);180 my $connection = DJabberd::Connection::ComponentIn->new($csock, $vhost->server, $self); 181 181 $connection->watch_read(1); 182 182 $self->{connection} = $connection; trunk/DJabberd/lib/DJabberd/Connection/ComponentIn.pm
r731 r735 2 2 =head1 NAME 3 3 4 DJabberd::Co mponent::External::Component - Connection component for DJabberd::Component::External4 DJabberd::Connection::ComponentIn - JEP-0114 Server Connection 5 5 6 6 =head1 INTRODUCTION 7 7 8 8 This class provides the connection and stream handling implementation for the 9 DJabberd component DJabberd::Component::External. It is of nointerest on its own.9 DJabberd component interface DJabberd::Component::External. It is of little interest on its own. 10 10 11 11 =head1 LICENCE … … 18 18 =cut 19 19 20 package DJabberd::Co mponent::External::Connection;20 package DJabberd::Connection::ComponentIn; 21 21 use strict; 22 22 use base 'DJabberd::Connection'; … … 59 59 60 60 sub on_stream_start { 61 my DJabberd::Co mponent::External::Connection $self = shift;61 my DJabberd::Connection::ComponentIn $self = shift; 62 62 my $ss = shift; 63 63 return $self->close unless $ss->xmlns eq $self->namespace; # FIXME: should be stream error
