ClientSession Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <ClientSession.hpp>
Inheritance diagram for ClientSession:

Public Types | |
| enum | ClientSessionState { SESSION_ERR, SESSION_CLOSED, SESSION_CONNECTED, SESSION_INITIALIZED, SESSION_PLAYING, SESSION_PAUSED } |
Public Member Functions | |
| ClientSession (const char *uri, IO *videoOutput, IO *audioOutput, TerminalCapabilities *tc, bool enableRtx, bool visualize=false) | |
| creates a socket to the given server. | |
| ClientSession (const char *uri, IO *vout, IO *aout, UserPreferences *up, bool enableRtx, bool visualize=false) | |
| creates a socket to the given server. | |
| ClientSession (const char *videoUri, const char *proxyUri, IO *vout, IO *aout, UserPreferences *up, bool enableRtx, bool visualize=false) | |
| ClientSession (int socket, const struct sockaddr_in *server, const char *uri, IO *vout, IO *aout, TerminalCapabilities *c, bool enableRtx, bool visualize=false) | |
| socket: the raw socket for initializing the session control channel. | |
| void | construct (const char *uri) |
| bool | sendResponse (const char *str, int bytes) |
| writes the string to the session control channel | |
| int | readRequest (char *str, const int MAX_BYTES) |
| reads at most | |
| bool | connect () |
| actually does a describe | |
| bool | play (bool with_caching=false) |
| bool | pause (u32 sessionKey) |
| bool | tearDown (u32 sessionKey) |
| void | run () |
| void | setUrl (const char *&uri, bool makeExactMatch=true) |
| deep-copies uri, sets mp4Stream by asking the cacheManager | |
| const ContainerInfo * | getContainerInfo () const |
| const list< DataChannel * > & | getDataChannels () const |
| DataChannel * | getDataChannel (int esId) |
| searches an existing DataChannel within this session for the given | |
| void | setDataChannel (DataChannel *dc) |
| simply appends | |
| ClientSessionState | getState () const |
| const char * | getUrl () const |
| int | getControlSocket () const |
| sockaddr_in * | getDestInfo () |
| void | setOutput (IO *out) |
| sets output at the client | |
| bool | setRtxInfoForES (u32 esId, rtx_info *rtx) |
| creates a rtx_group for the given input params | |
| rtx_group * | getRtxGroup (u32 esId) |
| returns an rtx_group for the esId, or NULL | |
Protected Attributes | |
| char * | url |
| the url of the source/destination file | |
| int | sessionControlChannel |
| the control channel. | |
| list< DataChannel * > | channels |
| the List of all DataChannels that this Session manages. | |
| ContainerInfo * | mp4Stream |
| Information about the video. | |
| ClientSessionState | state |
| the current state of the video | |
| RTSP * | protocol |
| The protocol used to parse requests and generate replies. | |
| sockaddr_in * | server |
| TerminalCapabilities * | termCap |
| buffers the termCap from the response, and then passes it to the client which is created during SETUP | |
| UserPreferences * | usrPref |
|
std::map< u32, DataSink *, struct intCompare > | clientObj |
| the client object needed to render the received data to the screen | |
| IO * | videoOut |
| IO * | audioOut |
| list< rtx_group * > | rtxInfo |
| stores for each ES an optional retransmission wish | |
| bool | rtxEnabled |
| bool | decodeData |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- ClientSession.hpp,v 1.17 2006/01/20 15:37:53 mkropfbe Exp
Definition at line 79 of file ClientSession.hpp.
Constructor & Destructor Documentation
|
||||||||||||||||||||||||||||
|
creates a socket to the given server. If the url is invalid or anyhing goes wrong, the state is set to SESSION_ERR. Otherwise the state is set to SESSION_CLOSED Definition at line 139 of file ClientSession.cpp. References mp4Stream, protocol, and termCap.
|
|
||||||||||||||||||||||||||||
|
creates a socket to the given server. If the url is invalid or anyhing goes wrong, the state is set to SESSION_ERR. Otherwise the state is set to SESSION_CLOSED Definition at line 85 of file ClientSession.cpp. References mp4Stream, protocol, and termCap.
|
|
||||||||||||||||||||||||||||||||||||
|
socket: the raw socket for initializing the session control channel. the server info is deep-copied Definition at line 186 of file ClientSession.cpp. References mp4Stream, protocol, sessionControlChannel, state, termCap, and url.
|
Member Function Documentation
|
|
searches an existing DataChannel within this session for the given
|
|
||||||||||||
|
reads at most
References sessionControlChannel, and state. Referenced by connect().
|
|
|
simply appends
References channels.
|
|
||||||||||||
|
deep-copies uri, sets mp4Stream by asking the cacheManager
|
Member Data Documentation
|
|
the List of all DataChannels that this Session manages. 1 DataChannel = 1 ESDefinition at line 175 of file ClientSession.hpp. Referenced by setDataChannel(). |
|
|
The protocol used to parse requests and generate replies. FIXME: we hard-code to RTSP, redesign needed for http Definition at line 182 of file ClientSession.hpp. Referenced by ClientSession(), and connect(). |
|
|
the control channel. Supported protocol is currently RTSP might add http later if requiredDefinition at line 171 of file ClientSession.hpp. Referenced by ClientSession(), readRequest(), and sendResponse(). |
The documentation for this class was generated from the following files: