Changeset 11971


Ignore:
Timestamp:
Feb 18, 2011, 4:01:52 PM (11 years ago)
Author:
jch
Message:

Stub out UTP_Create in non-uTP builds.

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r11960 r11971  
    352352}
    353353
    354 #ifdef WITH_UTP
    355354struct UTPSocket *
    356355tr_netOpenPeerUTPSocket( tr_session        * session,
     
    366365                       (struct sockaddr*)&ss, sslen );
    367366}
    368 #endif
    369367
    370368static int
  • trunk/libtransmission/net.h

    r11960 r11971  
    103103                           tr_bool            clientIsSeed );
    104104
    105 #ifdef WITH_UTP
    106105struct UTPSocket *
    107106tr_netOpenPeerUTPSocket( tr_session        * session,
     
    109108                         tr_port             port,
    110109                         tr_bool             clientIsSeed);
    111 #endif
    112110
    113111int  tr_netBindTCP( const tr_address * addr,
  • trunk/libtransmission/peer-io.c

    r11962 r11971  
    637637    assert( torrentHash );
    638638
    639 #ifdef WITH_UTP
    640639    if( utp )
    641640        utp_socket = tr_netOpenPeerUTPSocket( session, addr, port, isSeed );
    642 #endif
     641
    643642    if( !utp_socket ) {
    644643        fd = tr_netOpenPeerSocket( session, addr, port, isSeed );
  • trunk/libtransmission/tr-utp.c

    r11963 r11971  
    7575                 const struct sockaddr *from UNUSED, socklen_t fromlen UNUSED,
    7676                 tr_session *ss UNUSED) { return -1; }
     77
     78struct UTPSocket *UTP_Create(SendToProc *send_to_proc UNUSED,
     79                             void *send_to_userdata UNUSED,
     80                             const struct sockaddr *addr UNUSED,
     81                             socklen_t addrlen UNUSED)
     82{
     83    errno = ENOSYS;
     84    return NULL;
     85}
    7786
    7887void tr_utpClose( tr_session * ss UNUSED ) { }
Note: See TracChangeset for help on using the changeset viewer.