next up previous contents index
Next: SessionMappers Up: Session Announcement and Previous: Session Announcement and

SessionAgents

  An application built on the presented architecture can make use of an object that implements the mmstream.sessionSessionAgent interface to manage session description import and export. The interface prescribes an addSessionImport() and an addSessionExport() method, which both pass a Connection and a SessionMapper object as arguments. The methods are intended to start threads that perpetually receive and forward session descriptions by means of the Connection object. The importing and exporting threads must use specified the SessionMapper object to decode and encode the session descriptions from and into a session description protocol representation. The interface also defines a exportSession() methods, which is used to transmit a single description of a particular session and its state, for example at the time of the session's creation or termination.

    The mmstream.session.TOMS_SessionAgent class, conforming to the SessionAgent interface, is provided with the mmstream.session package. Its implementation is straightforward. It starts a SessionExporter or SessionImporter thread whenever a addSessionImport() or addSessionExport() method is called, respectively.



tspeuker@cip.informatik.uni-erlangen.de