Ignore:
Timestamp:
Dec 24, 2010, 8:58:41 AM (11 years ago)
Author:
charles
Message:

(trunk libT) #3836 "libevent2 support" -- finish moving to the libevent2 API mode. don't include the backwards-compatable API headers.

File:
1 edited

Legend:

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

    r11554 r11588  
    395395    io->inbuf = evbuffer_new( );
    396396    io->outbuf = evbuffer_new( );
    397     io->event_read = event_new( NULL, io->socket, EV_READ, event_read_cb, io );
    398     io->event_write = event_new( NULL, io->socket, EV_WRITE, event_write_cb, io );
     397    io->event_read = event_new( session->event_base, io->socket, EV_READ, event_read_cb, io );
     398    io->event_write = event_new( session->event_base, io->socket, EV_WRITE, event_write_cb, io );
    399399    tr_bandwidthConstruct( &io->bandwidth, session, parent );
    400400    tr_bandwidthSetPeer( &io->bandwidth, io );
     
    645645    event_del( io->event_write );
    646646    io->socket = tr_netOpenPeerSocket( session, &io->addr, io->port, io->isSeed );
    647     io->event_read = event_new( NULL, io->socket, EV_READ, event_read_cb, io );
    648     io->event_write = event_new( NULL, io->socket, EV_WRITE, event_write_cb, io );
     647    io->event_read = event_new( session->event_base, io->socket, EV_READ, event_read_cb, io );
     648    io->event_write = event_new( session->event_base, io->socket, EV_WRITE, event_write_cb, io );
    649649
    650650    if( io->socket >= 0 )
Note: See TracChangeset for help on using the changeset viewer.