|
|
This class is an abstract RTCP server.
Client structure with information on the client.
|
Constructor.
~ |
Destructor.
void* |
[pure virtual]
Called when a new client sends its SDES CNAME message. The class inheriting RTCPAbstractServer may use the client->UserData field to store additional data to serve the client. The result of the call will be saved into this field (client->UserData = newClient(client))! The call is synchronized by RTCPAbstractServer.
Parameters:
client | Client. |
cname | CNAME string. |
Returns: A value, which RTCPAbstractServer will save to client->UserData.
enum |
A set of reasons for deleteClient() call.
void |
[pure virtual]
Called when a client sends RTCP BYE or the timeout is reached. The call is synchronized by RTCPAbstractServer.
Parameters:
client | Client. |
reason | Reason for deleteClient() call. |
hasTimeout | true, if timeout is reached; false, if RTCP BYE received. |
shutdown | true, if server shutdown is in progress. |
bool |
[pure virtual]
This method is called about once per second to check, if the client is okay (e.g. no transmission error has occurred etc.) The call is synchronized by RTCPAbstractServer.
Returns: true, if client is okay; false to delete client in case of an error.
void |
[pure virtual]
Called when a client sends RTCP APP message. The call is synchronized by RTCPAbstractServer.
Parameters:
client | Client. |
name | RTCP APP name. |
data | RTCP APP data. |
dataLength | RTCP APP data length. |
void |
[pure virtual]
Called when a client sends RTCP SDES message; it is called for every SDES item in the message. The call is synchronized by RTCPAbstractServer.
Parameters:
client | Client. |
type | RTCP SDES type. |
data | RTCP SDES data. |
length | RTCP SDES length. |
void |
[pure virtual]
Called when a client sends a receiver report; it is called for every receiver report block in the message. The call is synchronized by RTCPAbstractServer.
Parameters:
client | Client. |
report | RTCPReceptionReportBlock. |
layer | Layer number. |
void |
[virtual]
This method is called, if an out of memory error occurs. It prints a simple error message. It should be overloaded by a more useful method within the concrete server. The call is synchronized by RTCPAbstractServer.
inline cardinal |
Get number of members serverd by the server.
Returns: Number of members.
inline card64 |
[const]
Get the default timeout in microseconds, after which a client is assumed to be dead and removed.
Returns: Default timeout in microseconds.
inline void |
Set the default timeout in microseconds, after which a client is assumed to be dead and removed. The new value will be used for all new clients. Timeouts of old clients are not changed!
Parameters:
timeout | Default timeout in microseconds. |
void |
Reimplementation of Thread::stop() to remove all clients before stopping.
Reimplemented from TimedThread.