Ignore:
Timestamp:
Feb 18, 2011, 12:45:44 AM (11 years ago)
Author:
jordan
Message:

add configure script switch to enable/disable utp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-utp.c

    r11949 r11960  
    3434#include "peer-mgr.h"
    3535#include "tr-utp.h"
     36
     37#ifndef WITH_UTP
     38
     39int tr_utpPacket(const unsigned char *buf UNUSED, size_t buflen UNUSED,
     40                 const struct sockaddr *from UNUSED, socklen_t fromlen UNUSED,
     41                 tr_session *ss UNUSED) { return -1; }
     42
     43void tr_utpClose( tr_session * ss UNUSED ) { }
     44
     45void tr_utpSendTo(void *closure UNUSED,
     46                  const unsigned char *buf UNUSED, size_t buflen UNUSED,
     47                  const struct sockaddr *to UNUSED, socklen_t tolen UNUSED) { }
     48
     49#else
    3650
    3751/* Greg says 50ms works for them. */
     
    142156    }
    143157}
     158
     159#endif /* #ifndef WITH_UTP ... else */
Note: See TracChangeset for help on using the changeset viewer.