Changeset 6b580b0
- Timestamp:
- Feb 18, 2008, 5:38:32 PM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 61abb18
- Parents:
- 18a54ee
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
raf1920fd r6b580b0 798 798 owl_global_set_curmsg(&g, curmsg+1); 799 799 } 800 owl_mainwin_redisplay(owl_global_get_mainwin(&g));800 /* owl_mainwin_redisplay(owl_global_get_mainwin(&g)); */ 801 801 owl_global_set_direction_downwards(&g); 802 802 } -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r9c7a701 r6b580b0 116 116 BarnOwl::error("Connection for $jid undefined -- error in reload?"); 117 117 } 118 # We keep this in the mainloop hook for keep-alives 119 my $status = $client->Process(0); 120 if ( !defined($status) ) { 121 BarnOwl::error("Jabber account $jid disconnected!"); 122 do_logout($jid); 123 } 118 124 if ($::shutdown) { 119 125 do_logout($jid); 120 126 next; 121 127 } 128 122 129 if ($vars{status_changed}) { 123 130 my $p = new Net::Jabber::Presence; … … 383 390 # The remove_dispatch() method is called from the 384 391 # ConnectionManager's removeConnection() method. 385 BarnOwl::add_dispatch($client->getSocket()->fileno(), sub { $client->OwlProcess() }); 392 $client->{fileno} = $client->getSocket()->fileno(); 393 #queue_admin_msg("Connected to jabber as $fullJid ($client->{fileno})"); 394 BarnOwl::add_dispatch($client->{fileno}, sub { $client->OwlProcess() }); 386 395 } 387 396 } -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber/Connection.pm
r9c7a701 r6b580b0 130 130 my $self = shift; 131 131 my $sid = getStreamID($self); 132 return $self->{STREAM}-> {SIDS}->{$sid}->{sock}|| -1;132 return $self->{STREAM}->GetSock($sid) || -1; 133 133 } 134 134 … … 145 145 my $jid = $self->{SESSION}->{FULLJID}; 146 146 BarnOwl::error("Jabber account $jid disconnected!"); 147 do_logout($jid);147 BarnOwl::Module::Jabber::do_logout($jid); 148 148 } 149 149 } -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber/ConnectionManager.pm
r9c7a701 r6b580b0 37 37 return 0 unless exists $self->{$jidStr}; 38 38 39 BarnOwl::remove_dispatch($self->{$jidStr}->{Client}-> getSocket()->fileno());39 BarnOwl::remove_dispatch($self->{$jidStr}->{Client}->{fileno}) if $self->{$jidStr}->{Client}->{fileno}; 40 40 $self->{$jidStr}->{Client}->Disconnect() 41 41 if $self->{$jidStr}->{Client}; -
select.c
r18a54ee r6b580b0 105 105 } 106 106 107 int owl_select_dispatch_prepare_fd_sets(fd_set *r, fd_set * e)107 int owl_select_dispatch_prepare_fd_sets(fd_set *r, fd_set *w, fd_set *e) 108 108 { 109 109 int i, len, max_fd; … … 119 119 d = (owl_dispatch*)owl_list_get_element(dl, i); 120 120 FD_SET(d->fd, r); 121 FD_SET(d->fd, w); 121 122 FD_SET(d->fd, e); 122 123 if (max_fd < d->fd) max_fd = d->fd; … … 186 187 timeout.tv_usec = 0; 187 188 188 max_fd = owl_select_dispatch_prepare_fd_sets(&r, & e);189 max_fd = owl_select_dispatch_prepare_fd_sets(&r, &w, &e); 189 190 190 191 /* AIM HACK:
Note: See TracChangeset
for help on using the changeset viewer.