SemiProxy Class Reference
This class is the main-class of the semiproxy. More...
#include <SemiProxy.hpp>
Public Member Functions | |
SemiProxy (uint proxyPort, uint responderPort) | |
default constructor. | |
~SemiProxy () | |
default destructor | |
int | createRtspServerSocket (const char *host, int port) |
Create a socket for communication with the media-server. | |
int | openClientSocket (int proxyport) |
Open the socket for communication with the client (the player). | |
void | addSession (SSession *asess) |
Add an active session to the list in Session-Management. | |
void | removeSession (SSession *asess) |
Remove a session from the list in Session-Management. | |
SSession * | getSession (uint RtspSessionId) |
UserList * | getUserList () |
ProfileList * | getProfileList () |
uint | getProxyPort () |
void | setAddDestination (bool shouldAddDestination) |
set addDestination flag | |
void | setAddTermCaps (bool shouldAddTermCaps) |
set addTermcaps flag | |
void | setRequestServerPosition (bool shouldRequestServerPosition) |
set requestServerPosition flag | |
void | setRequestClientPosition (bool shouldRequestClientPosition) |
set requestClientPosition flag | |
bool | shouldAddDestination () |
bool | shouldAddTermCaps () |
bool | shouldRequestServerPosition () |
bool | shouldRequestClientPosition () |
void | cleanup () |
cleanup used memory spaced | |
Static Public Member Functions | |
bool | isSemiProxyRunning () |
void | setSemiProxyRunning (bool semiproxyRunning) |
set semiproxyRunning flag | |
SemiProxy * | getRefLastCreated () |
Detailed Description
This class is the main-class of the semiproxy.On startup it reads all users and profiles into memory, creates a SessionManagement-object (which listens for requests from the semiserver) and creates another socket, on which incoming connections will be handled (by SemiProxySession.cpp).
- Author:
- Klaus Schoeffmann
Definition at line 84 of file SemiProxy.hpp.
Constructor & Destructor Documentation
|
default constructor. Starts Proxy (and Session-Management) and reads all users/profiles into memory.
References ProfileList::readProfilesFromFile(), UserList::readUsersFromFile(), and VThread::start().
|
Member Function Documentation
|
Create a socket for communication with the media-server. This function is called from SemiProxySession on demand (e.g. on Describe message). Definition at line 131 of file SemiProxy.cpp.
|
|
Referenced by SemiProxySession::forwardToServer(), SemiProxySession::handlePlayResponse(), and SemiProxySession::play().
|
|
|
|
|
|
References SessionMgmt::getSession(). Referenced by SemiProxySession::handlePlayResponse(), and SemiProxySession::play().
|
|
|
|
Referenced by openClientSocket().
|
|
Open the socket for communication with the client (the player). Every incoming connection on this socket is furhter handled from SemiProxySession Definition at line 173 of file SemiProxy.cpp. References isSemiProxyRunning(), and VThread::start().
|
|
Referenced by SemiProxySession::setup().
|
|
Referenced by SemiProxySession::forwardToServer().
|
|
Referenced by SemiProxySession::forwardToClient(), and SemiProxySession::play().
|
|
Referenced by SemiProxySession::pause(), and SemiProxySession::play().
|
The documentation for this class was generated from the following files: