Changes between Version 3 and Version 4 of archive/Development/UiClient


Ignore:
Timestamp:
02/23/2008 09:21:51 AM (16 years ago)
Author:
mvoncken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/Development/UiClient

    v3 v4  
    5555 
    5656 
     57= Client Methods = 
     58 
     59''Non-Core methods on client/aclient'' 
     60 
     61'''connect_on_new_core(callback): ''' 
     62 
     63Connect a callback whenever a new core is connected to. 
     64 
     65'''connect_on_no_core(callback): ''' 
     66 
     67Connect a callback whenever the core is disconnected from. 
     68 
     69'''connected(): ''' 
     70 
     71Returns True if connected to a host, and False if not. 
     72 
     73'''force_call(block): ''' 
     74 
     75Forces the multicall batch to go now and not wait for the timer.  This 
     76call also blocks until all callbacks have been dealt with. 
     77 
     78'''get_core_uri(): ''' 
     79 
     80Get the core URI 
     81 
     82'''is_localhost(): ''' 
     83 
     84Returns True if core is a localhost 
     85 
     86'''set_core_uri(uri): ''' 
     87 
     88Sets the core uri 
     89 
     90'''shutdown(): ''' 
     91 
     92Shutdown the core daemon 
     93 
     94 
    5795= Remote api = 
    5896Core methods exposed by aclient and sclient. 
     
    219257 
    220258Sets a torrents tracker list.  trackers will be [{"url", "tier"}] 
    221  
    222 '''shutdown([callback]): ''' 
    223  
    224 Shutdown the core daemon 
    225  
    226 = Client Methods = 
    227  
    228 ''Non-Core methods on client/aclient'' 
    229  
    230 '''connect_on_new_core(callback): ''' 
    231  
    232 Connect a callback whenever a new core is connected to. 
    233  
    234 '''connect_on_no_core(callback): ''' 
    235  
    236 Connect a callback whenever the core is disconnected from. 
    237  
    238 '''connected(): ''' 
    239  
    240 Returns True if connected to a host, and False if not. 
    241  
    242 '''force_call(block): ''' 
    243  
    244 Forces the multicall batch to go now and not wait for the timer.  This 
    245 call also blocks until all callbacks have been dealt with. 
    246  
    247 '''get_core_uri(): ''' 
    248  
    249 Get the core URI 
    250  
    251 '''is_localhost(): ''' 
    252  
    253 Returns True if core is a localhost 
    254  
    255 '''set_core_uri(uri): ''' 
    256  
    257 Sets the core uri 
    258  
    259 '''shutdown(): ''' 
    260  
    261 Shutdown the core daemon