Changeset 11929


Ignore:
Timestamp:
Feb 18, 2011, 12:36:07 AM (11 years ago)
Author:
jch
Message:

Maintain information about enabled/disabled I/O.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11928 r11929  
    584584    }
    585585
     586    io->write_enabled = 1;
     587    io->read_enabled = 1;
     588
    586589    return io;
    587590}
     
    701704    else
    702705        event_disable( io, event );
     706
     707    if( dir == TR_UP )
     708        io->write_enabled = isEnabled;
     709    else if( dir == TR_DOWN )
     710        io->read_enabled = isEnabled;
    703711}
    704712
  • trunk/libtransmission/peer-io.h

    r11903 r11929  
    106106    struct evbuffer     * outbuf;
    107107    struct tr_list      * outbuf_datatypes; /* struct tr_datatype */
     108   
     109    tr_bool               write_enabled;
     110    tr_bool               read_enabled;
    108111
    109112    struct event        * event_read;
Note: See TracChangeset for help on using the changeset viewer.