~ubuntu-branches/ubuntu/maverick/transmission/maverick

« back to all changes in this revision

Viewing changes to libtransmission/net.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2009-05-22 21:57:30 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (2.1.18 sid) (1.3.8 upstream)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20090522215730-ly5kgv5aw9ig2u82
Tags: upstream-1.61
ImportĀ upstreamĀ versionĀ 1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: net.h 7847 2009-02-08 00:29:20Z jhujhiti $
 
2
 * $Id: net.h 8242 2009-04-15 21:05:58Z jhujhiti $
3
3
 *
4
4
 * Copyright (c) 2005-2008 Transmission authors and contributors
5
5
 *
86
86
                     tr_address * dst );
87
87
int tr_compareAddresses( const tr_address * a,
88
88
                         const tr_address * b);
89
 
void tr_normalizeV4Mapped( tr_address * const addr );
90
89
 
91
90
tr_bool tr_isValidPeerAddress( const tr_address * addr, tr_port port );
92
91
 
93
 
void tr_suspectAddress( const tr_address * a, const char * source );
94
 
 
95
92
static TR_INLINE tr_bool tr_isAddress( const tr_address * a ) { return ( a != NULL ) && ( a->type==TR_AF_INET || a->type==TR_AF_INET6 ); }
96
93
 
97
94
tr_bool tr_net_hasIPv6( tr_port );
115
112
                                           tr_address * const,
116
113
                                           void * const ),
117
114
                           void * const userData);
 
115
const tr_address *tr_socketListGetType( const tr_socketList * const el,
 
116
                                        tr_address_type type );
118
117
 
119
118
/***********************************************************************
120
119
 * Sockets