class RTP_SessionManager |
This class is for encpsulating the IETF Real Time Protocol interface
This class is for encpsulating the IETF Real Time Protocol interface
If this function returns a non-null value, then the ReleaseSession() function MUST be called or the session is never deleted for the lifetime of the session manager.
If there is no session of the specified ID, then you MUST call the AddSession() function with a new RTP_Session. The mutex flag is left locked in this case. The AddSession() expects the mutex to be locked and unlocks it automatically.
This function MUST be called only after the UseSession() function has returned NULL. The mutex flag is left locked in that case. This function expects the mutex to be locked and unlocks it automatically.
eg: RTP_Session * session; for (session = rtpSessions.First(); session != NULL; session = rtpSessions.Next()) { if (session->Something()) { rtpSessions.Exit(); break; } }
Note that the Exit() function must be called if the enumeration is stopped prior to Next() returning NULL.
Note that the Exit() function must be called if the enumeration is stopped prior to Next() returning NULL.
Note that you should NOT call Exit() if Next() HAS returned NULL, or race conditions can result.
Alphabetic index HTML hierarchy of classes or Java