Lines Matching defs:natpmp
10 * $Id: natpmp.c 13263 2012-04-07 00:12:57Z jordan $
20 #include "natpmp.h"
58 natpmp_t natpmp;
89 nat->natpmp.s = -1; /* socket */
98 if( nat->natpmp.s >= 0 )
99 tr_netCloseSocket( nat->natpmp.s );
123 int val = initnatpmp( &nat->natpmp, 0, 0 );
125 val = sendpublicaddressrequest( &nat->natpmp );
135 const int val = readnatpmpresponseorretry( &nat->natpmp, &response );
158 const int val = sendnewportmappingrequest( &nat->natpmp, NATPMP_PROTOCOL_TCP,
170 const int val = readnatpmpresponseorretry( &nat->natpmp, &resp );
203 const int val = sendnewportmappingrequest( &nat->natpmp, NATPMP_PROTOCOL_TCP, private_port, private_port, LIFETIME_SECS );
212 const int val = readnatpmpresponseorretry( &nat->natpmp, &resp );