source: trunk/libtransmission/tr-dht.h @ 11599

Last change on this file since 11599 was 11599, checked in by charles, 11 years ago

(trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :)

  • Property svn:keywords set to Date Rev Author Id
File size: 1.7 KB
Line 
1/*
2Copyright (c) 2009 by Juliusz Chroboczek
3
4Permission is hereby granted, free of charge, to any person obtaining a copy
5of this software and associated documentation files (the "Software"), to deal
6in the Software without restriction, including without limitation the rights
7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the Software is
9furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20THE SOFTWARE.
21
22 $Id: tr-dht.h 11599 2010-12-27 19:18:17Z charles $
23
24*/
25
26#ifndef __TRANSMISSION__
27 #error only libtransmission should #include this header.
28#endif
29
30enum
31{
32    TR_DHT_STOPPED      = 0,
33    TR_DHT_BROKEN       = 1,
34    TR_DHT_POOR         = 2,
35    TR_DHT_FIREWALLED   = 3,
36    TR_DHT_GOOD         = 4
37};
38
39int  tr_dhtInit( tr_session *, const tr_address * );
40void tr_dhtUninit( tr_session * );
41tr_bool tr_dhtEnabled( const tr_session * );
42tr_port tr_dhtPort ( tr_session * );
43int tr_dhtStatus( tr_session *, int af, int * setme_nodeCount );
44const char *tr_dhtPrintableStatus(int status);
45int tr_dhtAddNode( tr_session *, const tr_address *, tr_port, tr_bool bootstrap );
46int tr_dhtAnnounce( tr_torrent *, int af, tr_bool announce );
Note: See TracBrowser for help on using the repository browser.