Changeset 2757


Ignore:
Timestamp:
Aug 14, 2007, 8:45:23 PM (14 years ago)
Author:
charles
Message:

get some pieces of the new tracker code into svn...

Location:
trunk/libtransmission
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Makefile.am

    r2750 r2757  
    1 AM_CPPFLAGS = -I. -I$(top_srcdir) $(LIBEVENT_CPPFLAGS) -D__TRANSMISSION__
     1AM_CPPFLAGS = -I. -I@top_srcdir@ -D__TRANSMISSION__
    22
    33noinst_LIBRARIES = libtransmission.a
     
    2424    peer.c \
    2525    platform.c \
     26    ptrarray.c \
     27    publish.c \
    2628    ratecontrol.c \
    2729    sha1.c \
     
    2931    strlcat.c \
    3032    strlcpy.c \
     33    timer.c \
    3134    torrent.c \
    3235    tracker.c \
     
    6265    peerutils.h \
    6366    platform.h \
     67    ptrarray.h \
     68    publish.h \
    6469    ratecontrol.h \
    6570    sha1.h \
    6671    shared.h \
     72    timer.h \
    6773    tracker.h \
    6874    transmission.h \
  • trunk/libtransmission/transmission.c

    r2746 r2757  
    3434#include <dirent.h> /* opendir */
    3535
     36#include <event.h>
     37
    3638#include "transmission.h"
    3739#include "fdlimit.h"
     
    6264}
    6365
     66static void
     67libeventThreadFunc( void * unused UNUSED )
     68{
     69    tr_dbg( "libevent thread starting" );
     70    event_init( );
     71    for ( ;; )
     72    {
     73        event_dispatch( );
     74        tr_wait( 50 ); /* 1/20th of a second */
     75    }
     76    tr_dbg( "libevent thread exiting" );
     77}
     78
    6479
    6580/***********************************************************************
     
    7287    tr_handle_t * h;
    7388    int           i;
     89
     90    tr_threadNew( libeventThreadFunc, NULL, "libeventThreadFunc" );
    7491
    7592    tr_msgInit();
  • trunk/libtransmission/utils.h

    r2611 r2757  
    2828#include <inttypes.h>
    2929#include <stdarg.h>
     30#include <stddef.h> /* for size_t */
    3031
    3132void tr_msgInit( void );
Note: See TracChangeset for help on using the changeset viewer.