コード例 #1
0
ファイル: VoIP.cpp プロジェクト: Linyes/lte_sim
VoIP::VoIP()
{
  /*
   * G729 codec generates during the ON period a packet with
   * a fixed size (20 bytes). We must add the RTP header (12 bytes)
   */
  m_size = 32; //application + RTP header
  m_stateON = false;
  SetApplicationType (Application::APPLICATION_TYPE_VOIP);
}
コード例 #2
0
cLocalApplication::cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp) {
   SetBaseDir(basePath);
   SetInitialClass(initialClass);
   SetTransportProtocol(tp);
   //give local apps unique app ids, even if illegal ones
   SetAid(nextId--);
   SetOid(-1);
   SetControlCode(Present);
   SetApplicationType(LocalDVBJApplication);
   SetServiceBound(false);
   AddName("deu", name); //TODO: change "deu" to real VDR language
}
コード例 #3
0
ファイル: WEB.cpp プロジェクト: vageeshdc/ltesim
WEB::WEB()
{
  /*
   * G729 codec generates during the ON period a packet with
   * a fixed size (20 bytes). We must add the RTP header (12 bytes)
   */
  m_size = Ran.Pareto(1.1,81.5);
        if (m_size > 66666)
        {
         m_size = 66666;
        }
  m_stateON = false;
  SetApplicationType (Application::APPLICATION_TYPE_WEB);
}
コード例 #4
0
InfiniteBuffer::InfiniteBuffer()
{
  SetApplicationType (Application::APPLICATION_TYPE_INFINITE_BUFFER);
}