Home Units Hierarchy Routines All identifiers

Unit unaConfRTP

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

unaConfRTP common stuff.

Version 2.5.2010.03 Still here

Version 2.5.2011.01 CELT added

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
packed record unaConfRTPcmd  

Functions and Procedures

procedure pwHash(const pw: string; var hash: unaConfRTPkey);
procedure encode(data: pointer; dataLen: int; key: pointer; keyLen: int);
function pt2sps(pt: int): int;
function pt2str(pt: int): string;

Types

unaConfRTPkey = array[0..15] of uint8;
punaConfRTPcmd = ˆunaConfRTPcmd;

Constants

c_confClnCmd_join = 'JOIN';
c_confClnCmd_joinHasKey = 'HKEY';
c_confClnCmd_joinHasKey_crc = 1668112384;
c_confClnCmd_join_crc = 3775646364;
c_confClnCmd_leave = 'LEAV';
c_confClnCmd_leave_crc = 0306315976;
c_confRTPcln_mixer_sps = 32000;
c_confSrvCmd_announce = 'ANNO';
c_confSrvCmd_announce_crc = 260997627;
c_confSrvCmd_drop = 'DROP';
c_confSrvCmd_drop_crc = 3112114025;
c_confSrvCmd_FAIL = 'FAIL';
c_confSrvCmd_FAIL_crc = 1330460930;
c_confSrvCmd_joinOK = 'JOIN';
c_confSrvCmd_joinOK_crc = 3775646364;
c_confSrvCmd_LEAVE = 'LEAV';
c_confSrvError_accessDenied = -1;
c_confSrvError_invalidPassword = -9;
c_confSrvError_malformedData = -8;
c_confSrvError_noSuchUserID = -7;
c_confSrvError_outOfSeats = -4;
c_confSrvError_pleaseTryAgain = -6;
c_confSrvError_roomClosed = -2;
c_confSrvError_roomDoesNotExist = -5;
c_confSrvError_suchUserFromWrongAddr = -10;
c_confSrvError_userKicked = -3;
c_confSrvError_userObjLocked = -11;
c_max_audioStreams_per_room = 8;
c_max_rooms = 500;
c_max_users_per_room = 1000;
c_max_users_per_server = c_max_rooms * c_max_users_per_room;
c_rtcpAPP_subtype_cln = 2;
c_rtcpAPP_subtype_srv = 1;
c_rtpPTs_conf_ALaw_16000 = 114;
c_rtpPTs_conf_ALaw_32000 = 115;
c_rtpPTs_conf_ALaw_8000 = 113;
c_rtpPTs_conf_CELT_16000 = 117;
c_rtpPTs_conf_CELT_24000 = 118;
c_rtpPTs_conf_CELT_8000 = 116;
c_rtpPTs_conf_G7221_16000 = 120;
c_rtpPTs_conf_G7221_32000 = 121;
c_rtpPTs_conf_G7221_8000 = 119;
c_rtpPTs_conf_mpeg_16000 = 105;
c_rtpPTs_conf_mpeg_32000 = 106;
c_rtpPTs_conf_mpeg_8000 = 104;
c_rtpPTs_conf_PCM_16000 = 111;
c_rtpPTs_conf_PCM_32000 = 112;
c_rtpPTs_conf_PCM_8000 = 110;
c_rtpPTs_conf_speex_16000 = 102;
c_rtpPTs_conf_speex_32000 = 103;
c_rtpPTs_conf_speex_8000 = 101;
c_rtpPTs_conf_uLaw_16000 = 108;
c_rtpPTs_conf_uLaw_32000 = 109;
c_rtpPTs_conf_uLaw_8000 = 107;

Description

Functions and Procedures

procedure pwHash(const pw: string; var hash: unaConfRTPkey);

Returns hash for given password.

Replace with better hash for improved security

procedure encode(data: pointer; dataLen: int; key: pointer; keyLen: int);

Encodes block of data.

Replace with better cipher for improved security

function pt2sps(pt: int): int;

Returns sampling rate for specified payload.

function pt2str(pt: int): string;

Returns string representation of specified payload.

Types

unaConfRTPkey = array[0..15] of uint8;
 
punaConfRTPcmd = ˆunaConfRTPcmd;
 

Constants

c_confClnCmd_join = 'JOIN';

some announce from server, dataBuf contains a message

user commans

c_confClnCmd_joinHasKey = 'HKEY';

leave room, data = room_name

c_confClnCmd_joinHasKey_crc = 1668112384;
 
c_confClnCmd_join_crc = 3775646364;

user commans

c_confClnCmd_leave = 'LEAV';

join room, data = room_name

c_confClnCmd_leave_crc = 0306315976;
 
c_confRTPcln_mixer_sps = 32000;

max number of talking (at the same time) people in one room

c_confSrvCmd_announce = 'ANNO';

connection will be dropped, idata may contain the reason

c_confSrvCmd_announce_crc = 260997627;
 
c_confSrvCmd_drop = 'DROP';

negative reply, idata may contain error code (c_wizSrvError_xxx)

c_confSrvCmd_drop_crc = 3112114025;
 
c_confSrvCmd_FAIL = 'FAIL';

OK for join, dataBuf contains room's session key

c_confSrvCmd_FAIL_crc = 1330460930;
 
c_confSrvCmd_joinOK = 'JOIN';

client command

server commans

c_confSrvCmd_joinOK_crc = 3775646364;

join room, data = room_name, now user has the key

crc32 of above for quick access

c_confSrvCmd_LEAVE = 'LEAV';

some announce from server, dataBuf contains a message

c_confSrvError_accessDenied = -1;

server error codes for server commands

c_confSrvError_invalidPassword = -9;
 
c_confSrvError_malformedData = -8;
 
c_confSrvError_noSuchUserID = -7;

server seems to be a little busy, please try again in few seconds

c_confSrvError_outOfSeats = -4;
 
c_confSrvError_pleaseTryAgain = -6;
 
c_confSrvError_roomClosed = -2;
 
c_confSrvError_roomDoesNotExist = -5;
 
c_confSrvError_suchUserFromWrongAddr = -10;
 
c_confSrvError_userKicked = -3;
 
c_confSrvError_userObjLocked = -11;
 
c_max_audioStreams_per_room = 8;

maximum number of users per server

c_max_rooms = 500;
 
c_max_users_per_room = 1000;

maximum number of rooms per server

c_max_users_per_server = c_max_rooms * c_max_users_per_room;

maximum number of users per room

c_rtcpAPP_subtype_cln = 2;

srv command

c_rtcpAPP_subtype_srv = 1;
 
c_rtpPTs_conf_ALaw_16000 = 114;
 
c_rtpPTs_conf_ALaw_32000 = 115;
 
c_rtpPTs_conf_ALaw_8000 = 113;
 
c_rtpPTs_conf_CELT_16000 = 117;
 
c_rtpPTs_conf_CELT_24000 = 118;
 
c_rtpPTs_conf_CELT_8000 = 116;
 
c_rtpPTs_conf_G7221_16000 = 120;
 
c_rtpPTs_conf_G7221_32000 = 121;
 
c_rtpPTs_conf_G7221_8000 = 119;
 
c_rtpPTs_conf_mpeg_16000 = 105;
 
c_rtpPTs_conf_mpeg_32000 = 106;
 
c_rtpPTs_conf_mpeg_8000 = 104;
 
c_rtpPTs_conf_PCM_16000 = 111;
 
c_rtpPTs_conf_PCM_32000 = 112;
 
c_rtpPTs_conf_PCM_8000 = 110;
 
c_rtpPTs_conf_speex_16000 = 102;
 
c_rtpPTs_conf_speex_32000 = 103;
 
c_rtpPTs_conf_speex_8000 = 101;

default mixing rate for clients

known audio payloads

c_rtpPTs_conf_uLaw_16000 = 108;
 
c_rtpPTs_conf_uLaw_32000 = 109;
 
c_rtpPTs_conf_uLaw_8000 = 107;
 

Author

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09