Ignore:
Timestamp:
Sep 25, 2006, 6:37:45 PM (15 years ago)
Author:
joshe
Message:

Merge nat-traversal branch to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r817 r920  
    100100 * tr_setBindPort
    101101 ***********************************************************************
    102  * Sets the port to listen for incoming peer connections
     102 * Sets the port to listen for incoming peer connections.
     103 * This can be safely called even with active torrents.
    103104 **********************************************************************/
    104105void tr_setBindPort( tr_handle_t *, int );
     106
     107/***********************************************************************
     108 * tr_natTraversalEnable
     109 * tr_natTraversalDisable
     110 ***********************************************************************
     111 * Enable or disable NAT traversal using NAT-PMP or UPnP IGD.
     112 **********************************************************************/
     113void tr_natTraversalEnable( tr_handle_t * );
     114void tr_natTraversalDisable( tr_handle_t * );
     115
     116/***********************************************************************
     117 * tr_natTraversalStatus
     118 ***********************************************************************
     119 * Return the status of NAT traversal
     120 **********************************************************************/
     121#define TR_NAT_TRAVERSAL_MAPPING        1
     122#define TR_NAT_TRAVERSAL_MAPPED         2
     123#define TR_NAT_TRAVERSAL_NOTFOUND       3
     124#define TR_NAT_TRAVERSAL_ERROR          4
     125#define TR_NAT_TRAVERSAL_UNMAPPING      5
     126#define TR_NAT_TRAVERSAL_DISABLED       6
     127#define TR_NAT_TRAVERSAL_IS_DISABLED( st ) \
     128  ( TR_NAT_TRAVERSAL_DISABLED == (st) || TR_NAT_TRAVERSAL_UNMAPPING == (st) )
     129int tr_natTraversalStatus( tr_handle_t * );
    105130
    106131/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.