Package tp :: Package client :: Module threads :: Class FinderThread
[show private | hide private]
[frames | no frames]

Type FinderThread

object --+            
         |            
  _Verbose --+        
             |        
        Thread --+    
                 |    
        CallThread --+
                     |
                    FinderThread


The finder thread deals with finding games.

It uses both Zeroconf and talks to the metaserver to get the information it
needs.

Method Summary
  __init__(self, application)
  Cleanup(self)
Ask the thread to try and exit.
  FoundLocalGame(self, game)
  FoundRemoteGame(self, game)
  Games(self)
Get all the currently known games.
  LostLocalGame(self, game)
  LostRemoteGame(self, game)
  Post(self, event)
Post an Event the current thread.
  run(self)
    Inherited from CallThread
  Call(self, method, *args, **kw)
Queue a call to method in on thread.
  error(self, error)
Called when an exception occurs in a function which was called.
  every(self)
Called every time th run goes around a loop.
  idle(self)
Called when there is nothing left to do.
  Reset(self)
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
  _set_daemon(self)
    Inherited from _Verbose
  _note(self, format, *args)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Class Variable Summary
classobj FinderErrorEvent = tp.client.threads.FinderErrorEvent
classobj FinderFinishedEvent = tp.client.threads.FinderFinishedEvent
classobj FoundGameEvent = tp.client.threads.FoundGameEvent
classobj FoundLocalGameEvent = tp.client.threads.FoundLocalGameEvent
classobj FoundRemoteGameEvent = tp.client.threads.FoundRemoteGameEvent
classobj GameEvent = tp.client.threads.GameEvent
classobj LostGameEvent = tp.client.threads.LostGameEvent
classobj LostLocalGameEvent = tp.client.threads.LostLocalGameEvent
classobj LostRemoteGameEvent = tp.client.threads.LostRemoteGameEvent
str name = 'Finder'
    Inherited from Thread
bool _Thread__initialized = False

Method Details

Cleanup(self)

Ask the thread to try and exit.
Overrides:
tp.client.threads.CallThread.Cleanup (inherited documentation)

Games(self)

Get all the currently known games.

Post(self, event)

Post an Event the current thread.
Overrides:
tp.client.threads.CallThread.Post

Class Variable Details

name

Type:
str
Value:
'Finder'                                                               

Generated by Epydoc 2.1 on Fri Jan 1 08:00:26 2010 http://epydoc.sf.net