MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Public Member Functions | Data Fields
Mist::negotiationProxy Class Reference

#include <io.h>

Public Member Functions

 negotiationProxy ()
 
unsigned long bufferedOnPage (unsigned long tid, unsigned long keyNum)
 Returns the pagenumber where this key is buffered on. More...
 
void bufferFinalize (unsigned long tid, DTSC::Meta &myMeta)
 
void bufferLivePacket (DTSC::Packet &packet, DTSC::Meta &myMeta)
 
void bufferNext (DTSC::Packet &pack, DTSC::Meta &myMeta)
 
bool bufferStart (unsigned long tid, unsigned long pageNumber, DTSC::Meta &myMeta)
 Starts the buffering of a new page. More...
 
void continueNegotiate (unsigned long tid, DTSC::Meta &myMeta)
 
void initiateEncryption ()
 
bool isBuffered (unsigned long tid, unsigned long keyNum)
 Checks whether a key is buffered. More...
 

Data Fields

std::map< unsigned long, IPC::sharedPagecurPage
 For each track, holds the page that is currently being written. More...
 
std::map< unsigned long, unsigned long > curPageNum
 For each track, holds the number page that is currently being written. More...
 
bool encrypt
 
IPC::sharedPage encryptionPage
 
std::map< int, unsigned long long int > iVecs
 
std::map< unsigned long, IPC::sharedPagemetaPages
 For each track, holds the page that describes which dataPages are mapped. More...
 
std::map< unsigned long, std::map< unsigned long, DTSCPageData > > pagesByTrack
 Holds the data for all pages of a track. Based on unmapped tids. More...
 
std::string streamName
 Name of the stream to connect to. More...
 
std::map< unsigned long, unsigned long > trackMap
 Determines which input track maps onto which "final" track. More...
 
std::map< unsigned long, unsigned long > trackOffset
 Offset of data on user page. More...
 
std::map< unsigned long, negotiationStatetrackState
 State of the negotiation for tracks. More...
 
IPC::sharedClient userClient
 Shared memory used for connection to Mixer process. More...
 
Encryption::verimatrixData vmData
 

Constructor & Destructor Documentation

Mist::negotiationProxy::negotiationProxy ( )
inline

Member Function Documentation

unsigned long Mist::negotiationProxy::bufferedOnPage ( unsigned long  tid,
unsigned long  keyNum 
)

Returns the pagenumber where this key is buffered on.

Parameters
tidThe trackid on which to locate the key
keyNumThe number of the keyframe to find
Returns
0 if the page has not been mapped yet
The pagenumber of the page the key is located on, if the page is registered on the track index page
0 if the key was not found
void Mist::negotiationProxy::bufferFinalize ( unsigned long  tid,
DTSC::Meta myMeta 
)
void Mist::negotiationProxy::bufferLivePacket ( DTSC::Packet packet,
DTSC::Meta myMeta 
)
Todo:
Figure out how to act with declined track here
void Mist::negotiationProxy::bufferNext ( DTSC::Packet pack,
DTSC::Meta myMeta 
)
bool Mist::negotiationProxy::bufferStart ( unsigned long  tid,
unsigned long  pageNumber,
DTSC::Meta myMeta 
)

Starts the buffering of a new page.

Does not do any actual buffering, just sets the right bits for buffering to go right.

Buffering itself is done by bufferNext().

Parameters
tidThe trackid of the page to start buffering
pageNumberThe number of the page to start buffering
Returns
false if the track has not been accepted (yet)
false if the pagenumber is not valid for this track
false if the page was already buffered.
true if everything was successful
void Mist::negotiationProxy::continueNegotiate ( unsigned long  tid,
DTSC::Meta myMeta 
)
void Mist::negotiationProxy::initiateEncryption ( )
bool Mist::negotiationProxy::isBuffered ( unsigned long  tid,
unsigned long  keyNum 
)

Checks whether a key is buffered.

Parameters
tidThe trackid on which to locate the key
keyNumThe number of the keyframe to find
Returns
The result of bufferedOnPage(tid, keyNum)

Field Documentation

std::map<unsigned long, IPC::sharedPage> Mist::negotiationProxy::curPage

For each track, holds the page that is currently being written.

std::map<unsigned long, unsigned long> Mist::negotiationProxy::curPageNum

For each track, holds the number page that is currently being written.

bool Mist::negotiationProxy::encrypt
IPC::sharedPage Mist::negotiationProxy::encryptionPage
std::map<int,unsigned long long int> Mist::negotiationProxy::iVecs
std::map<unsigned long, IPC::sharedPage> Mist::negotiationProxy::metaPages

For each track, holds the page that describes which dataPages are mapped.

std::map<unsigned long, std::map<unsigned long, DTSCPageData> > Mist::negotiationProxy::pagesByTrack

Holds the data for all pages of a track. Based on unmapped tids.

std::string Mist::negotiationProxy::streamName

Name of the stream to connect to.

std::map<unsigned long, unsigned long> Mist::negotiationProxy::trackMap

Determines which input track maps onto which "final" track.

std::map<unsigned long, unsigned long> Mist::negotiationProxy::trackOffset

Offset of data on user page.

std::map<unsigned long, negotiationState> Mist::negotiationProxy::trackState

State of the negotiation for tracks.

IPC::sharedClient Mist::negotiationProxy::userClient

Shared memory used for connection to Mixer process.

Encryption::verimatrixData Mist::negotiationProxy::vmData

The documentation for this class was generated from the following files: