Changeset 6b580b0 for select.c


Ignore:
Timestamp:
Feb 18, 2008, 5:38:32 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
61abb18
Parents:
18a54ee
Message:
functions.c:
 * removing the redisplay call from owl_function_lastmsg_noredisplay()

select.c:
 * Watch AIM sockets for writing as well. This speeds up AIM connections significantly.

Jabber.pm 
 * keep a copy of the fd around for later.
 * Process() on mainloop for keep-alives

Jabber/ConnectionManager.pm
 * Use the stored fd to drop the dispatch for a connection.

Jabber/Connection.pm
 * Use the GetSock() abstraction since we have it.
 * Call the right do_logout when we have trouble.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • select.c

    r18a54ee r6b580b0  
    105105}
    106106
    107 int owl_select_dispatch_prepare_fd_sets(fd_set *r, fd_set *e)
     107int owl_select_dispatch_prepare_fd_sets(fd_set *r, fd_set *w, fd_set *e)
    108108{
    109109  int i, len, max_fd;
     
    119119    d = (owl_dispatch*)owl_list_get_element(dl, i);
    120120    FD_SET(d->fd, r);
     121    FD_SET(d->fd, w);
    121122    FD_SET(d->fd, e);
    122123    if (max_fd < d->fd) max_fd = d->fd;
     
    186187  timeout.tv_usec = 0;
    187188
    188   max_fd = owl_select_dispatch_prepare_fd_sets(&r, &e);
     189  max_fd = owl_select_dispatch_prepare_fd_sets(&r, &w, &e);
    189190
    190191  /* AIM HACK:
Note: See TracChangeset for help on using the changeset viewer.