
77
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Configuring the server
Last updated 11/28/2012
U8 dscpVal;
if(getU8Field(m_pAev, IFmsAuthEvent::F_CLIENT_DIFFSERV_BITS, dscpVal))
{
dscpVal = 0xFC;
bool res = setU8Field(m_pAev,
IFmsAuthEvent::F_CLIENT_DIFFSERV_BITS,
dscpVal);
}
U8 dscpMask;
dscpMask = 0xF0;
bool res = setU8Field(m_pAev,
IFmsAuthEvent::F_CLIENT_DIFFSERV_MASK,
dscpMask);
The following table shows how to use the mask and bits fields together to get the desired bit settings on the socket:
Set operations
Set bits in the following Authorization events: E_CONNECT and E_PLAY.You can set bits in the
authorize()
method of the Authorization plug-in. You cannot set bits in the
notify()
method of the Authorization plug-in.
Get operations
Get bits in the following events: E_CONNECT, E_PLAY, and E_STOP.The get result on the
F_CLIENT_DIFFSERV_MASK field always returns the value 0xFC.
Logging
The following table lists error messages for normal connections:
No.
Current value on
socket
DiffServ bits
DiffServ mask
New value
on
successful
set
Comment
1
0
50
252
48
ECN bits were masked.
2
0
100
252
100
3
0
255
255
252
Although ECN bits were not masked, setting them is
not allowed.
4
100
200
128
228
Mask allowed only MSB to be modified.
5
100
200
252
200
Mask allowed DSCP bits to be modified.
Condition
Message
Log file
Unable to set DSCP bits from the Authorization plug-in.
While setting diff serv bits for uri %s: Unable to set DiffServ
field.
Core
Unable to query DSCP bits from the socket.
While setting diff serv bits for uri %s: Unable to get
DiffServ field.
Core