Changeset 11932


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

Export uTP send_to callback.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r11926 r11932  
    7676}
    7777
    78 static void
    79 send_to(void *closure, const unsigned char *buf, size_t buflen,
    80         const struct sockaddr *to, socklen_t tolen)
     78void
     79tr_utpSendTo(void *closure, const unsigned char *buf, size_t buflen,
     80             const struct sockaddr *to, socklen_t tolen)
    8181{
    8282    tr_session *ss = (tr_session*)closure;
     
    116116    }
    117117
    118     return UTP_IsIncomingUTP(incoming, send_to, ss,
     118    return UTP_IsIncomingUTP(incoming, tr_utpSendTo, ss,
    119119                             buf, buflen, from, fromlen);
    120120}
  • trunk/libtransmission/tr-utp.h

    r11922 r11932  
    2727
    2828void tr_utpClose( tr_session * );
     29
     30void tr_utpSendTo(void *closure, const unsigned char *buf, size_t buflen,
     31                  const struct sockaddr *to, socklen_t tolen);
Note: See TracChangeset for help on using the changeset viewer.