| 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 |