Added shared memory session cache + instant-sync for sessions in cache.
This commit is contained in:
parent
ad514b6744
commit
0b78a57e40
3 changed files with 64 additions and 1 deletions
|
@ -104,6 +104,9 @@ static const char * DBG_LVL_LIST[] = {"NONE", "FAIL", "ERROR", "WARN", "INFO", "
|
|||
#define SEM_CONF "/MstConfLock"
|
||||
#define SHM_CONF "MstConf"
|
||||
#define NAME_BUFFER_SIZE 200 //char buffer size for snprintf'ing shm filenames
|
||||
#define SHM_SESSIONS "/MstSess"
|
||||
#define SHM_SESSIONS_ITEM 165 //4 byte crc, 100b streamname, 20b connector, 40b host, 1b sync
|
||||
#define SHM_SESSIONS_SIZE 5248000 //5MiB = almost 32k sessions
|
||||
|
||||
#define SHM_STREAM_ENCRYPT "MstCRYP%s" //%s stream name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue