#include <Connector.h>
Collaboration diagram for Connector:

It is the controller or handler.
Definition at line 22 of file Connector.h.
Public Methods | |
| Connector () | |
| The Connector empty Constructor, uses the default port to listen on.  | |
| virtual | ~Connector () | 
| Destructor, disconnects all connections and stops listening on ports.  | |
| Connector (int start) | |
| Constructor, specify a starting port.  | |
| Connector (int inputPort, int outputPort, int filterPort, int configPort) | |
| Constructor, explicitly specify inputPort, outputPort, filterPort, configPort.  | |
| int | lastUpdate () | 
| lastUpdate returns when last updated  | |
| void | lastChange () | 
| sends the last Change Status to the Current ConfigConnection  | |
| void | updated () | 
| update the time of last Updated.  | |
| list< ConnectionWrap * > * | getConnectionList () | 
| Retrieves a list of non config connections.  | |
| void | disconnect (int fd) | 
| disconnect from filehandle fd (e.g.  | |
| void | unPatch (int fhFrom, int fhTo) | 
| unpatch from filehandle fhFrom to fhTo  | |
| void | patch (int fhFrom, int fhTo) | 
| patch a connection between fhFrom to fhTo  | |
| void | sendUpdate () | 
| sends the update to the current Config Connection  | |
| void | process () | 
| Process - iterates through one cycle of move audio, check connections and disconnections.  | |
| void | shutDown () | 
| Tells the server to shutdown, not necessarily immediately.  | |
| bool | done () | 
| is the Connector done (shutdown)?  | |
Private Methods | |
| void | init (int inputPort, int outputPort, int filterPort, int configPort) | 
Private Attributes | |
| bool | quit | 
| void * | messageExecutor | 
| list< ConnectionWrap * > * | allConnections | 
| list< ConfigConnection * > * | configConnections | 
| ConfigConnection * | currentConfig | 
| ConnectionFactory * | connectionFactory | 
| BufferedFileFactory * | bf | 
| int | lastUpdated | 
| int | processUpdate | 
      
  | 
  
| 
 The Connector empty Constructor, uses the default port to listen on. 
 Definition at line 7 of file Connector.C. References DEFAULT_PORT, and init().  | 
  
      
  | 
  
| 
 Destructor, disconnects all connections and stops listening on ports. 
 Definition at line 10 of file Connector.C. References allConnections, bf, configConnections, connectionFactory, currentConfig, and messageExecutor.  | 
  
      
  | 
  
| 
 Constructor, specify a starting port. 
 Definition at line 45 of file Connector.C. References init().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Constructor, explicitly specify inputPort, outputPort, filterPort, configPort. 
 Definition at line 48 of file Connector.C. References init().  | 
  
      
  | 
  
| 
 disconnect from filehandle fd (e.g. connection id). Definition at line 80 of file Connector.C. References allConnections, ConnectionWrap::disconnect(), and updated(). Referenced by MessageExecutor::executeMessage().  | 
  
      
  | 
  
| 
 is the Connector done (shutdown)? 
 Definition at line 266 of file Connector.C. References quit. Referenced by main().  | 
  
      
  | 
  
| 
 Retrieves a list of non config connections. 
 Definition at line 77 of file Connector.C. References allConnections.  | 
  
      
  | 
  ||||||||||||||||||||
| 
 
 Definition at line 51 of file Connector.C. References allConnections, bf, configConnections, connectionFactory, lastUpdated, messageExecutor, processUpdate, quit, and updated(). Referenced by Connector().  | 
  
      
  | 
  
| 
 sends the last Change Status to the Current ConfigConnection 
 Definition at line 65 of file Connector.C. References currentConfig, lastUpdate(), and ConfigConnection::write(). Referenced by MessageExecutor::executeMessage().  | 
  
      
  | 
  
| 
 lastUpdate returns when last updated 
 Definition at line 62 of file Connector.C. References lastUpdated. Referenced by lastChange(), and sendUpdate().  | 
  
      
  | 
  ||||||||||||
| 
 patch a connection between fhFrom to fhTo 
 Definition at line 125 of file Connector.C. References allConnections, ConnectionWrap::connectFrom(), ConnectionWrap::readable(), and updated(). Referenced by MessageExecutor::executeMessage().  | 
  
      
  | 
  
| 
 Process - iterates through one cycle of move audio, check connections and disconnections. 
 Definition at line 177 of file Connector.C. References allConnections, bf, Clock::clock, ConnectionU::configConn, CONFIGCONN, configConnections, ConnectionWrap::conn, connectionFactory, currentConfig, ConnectionU::floatConn, Connection< float >::getFileHandle(), ConfigConnection::getMessage(), Message::getXML(), ConnectionFactory::isThereANewConnection(), lastUpdated, messageExecutor, BufferedFileFactory::process(), processUpdate, sendUpdate(), ConnectionWrap::type, updated(), and ConfigConnection::write(). Referenced by main().  | 
  
      
  | 
  
| 
 sends the update to the current Config Connection 
 Definition at line 149 of file Connector.C. References allConnections, configConnections, currentConfig, lastUpdate(), and ConfigConnection::write(). Referenced by MessageExecutor::executeMessage(), and process().  | 
  
      
  | 
  
| 
 Tells the server to shutdown, not necessarily immediately. 
 Definition at line 262 of file Connector.C. References quit. Referenced by MessageExecutor::executeMessage().  | 
  
      
  | 
  ||||||||||||
| 
 unpatch from filehandle fhFrom to fhTo 
 Definition at line 106 of file Connector.C. References allConnections, ConnectionWrap::disconnectFrom(), and updated(). Referenced by MessageExecutor::executeMessage().  | 
  
      
  | 
  
| 
 update the time of last Updated. Must be called when state changes. Definition at line 74 of file Connector.C. References lastUpdated. Referenced by disconnect(), init(), patch(), process(), and unPatch().  | 
  
      
  | 
  
| 
 
 Definition at line 87 of file Connector.h. Referenced by disconnect(), getConnectionList(), init(), patch(), process(), sendUpdate(), unPatch(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 91 of file Connector.h. Referenced by init(), process(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 88 of file Connector.h. Referenced by init(), process(), sendUpdate(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 90 of file Connector.h. Referenced by init(), process(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 89 of file Connector.h. Referenced by lastChange(), process(), sendUpdate(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 93 of file Connector.h. Referenced by init(), lastUpdate(), process(), and updated().  | 
  
      
  | 
  
| 
 
 Definition at line 86 of file Connector.h. Referenced by init(), process(), and ~Connector().  | 
  
      
  | 
  
| 
 
 Definition at line 94 of file Connector.h.  | 
  
      
  | 
  
| 
 
 Definition at line 85 of file Connector.h. Referenced by done(), init(), and shutDown().  | 
  
1.2.18