Changeset 11901


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

Participate in UTP.

This adds code to participate in the UTP protocol, but without doing anything
useful yet -- we just shut down immediately any incoming connexion request.

Location:
trunk/libtransmission
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Makefile.am

    r11651 r11901  
    5757    tr-lpd.c \
    5858    tr-udp.c \
     59    tr-utp.c \
    5960    tr-getopt.c \
    6061    trevent.c \
     
    109110    tr-dht.h \
    110111    tr-udp.h \
     112    tr-utp.h \
    111113    tr-lpd.h \
    112114    trevent.h \
  • trunk/libtransmission/tr-udp.c

    r11810 r11901  
    3131#include "session.h"
    3232#include "tr-dht.h"
     33#include "tr-utp.h"
    3334#include "tr-udp.h"
    3435
     
    140141        tr_dhtCallback(buf, rc, (struct sockaddr*)&from, fromlen, sv);
    141142    } else {
    142         /* Probably a UTP packet. */
    143         /* Nothing yet. */
     143        rc = tr_utpPacket(buf, rc, (struct sockaddr*)&from, fromlen, ss);
     144        if(!rc)
     145            tr_ndbg("UDP", "Unexpected UDP packet");
    144146    }
    145147
Note: See TracChangeset for help on using the changeset viewer.