Package flumotion :: Package component :: Module feeder :: Class FeederClient
[hide private]

Class FeederClient

source code

This class groups information related to the client of a feeder. The client is identified by an id. The information remains valid for the lifetime of the feeder, so it can track reconnects of the client.

Instance Methods [hide private]
 
__init__(self, clientId) source code
 
setStats(self, stats) source code
 
connected(self, fd, when=None)
The client has connected on this fd.
source code
 
_updateUIStateForDisconnect(self, fd, when) source code
 
disconnected(self, when=None, fd=None)
The client has disconnected.
source code
Instance Variables [hide private]
  clientId
id of the client of the feeder
  fd
file descriptor the client is currently using, or None.
Method Details [hide private]

setStats(self, stats)

source code 
Parameters:
  • stats (list)

connected(self, fd, when=None)

source code 

The client has connected on this fd. Update related stats.

Called only from the reactor thread.

disconnected(self, when=None, fd=None)

source code 

The client has disconnected. Update related stats.

Called from GStreamer threads.