LinuxÏÂC++ÀàµÄÏ̺߳¯Êý
×î½üÔÚÓÃC++±àдһ¸öRTSPµÄ¿Í»§¶Ë£¬ÓÉÓÚÒªÓõ½Ị̈߳¬¸ù¾ÝC±à³ÌµÄ¾Ñ飬дÁËÈçÏ´úÂ룺
class LiRtspSession
{
public:
void* MainThreadFunc(void* pvData);
void* AudioProcThreadFunc(void* pvData);
void Connect();
//Ê¡ÂԵĴúÂë
private:
pthread_t m_hProcHandle, m_hAudioProcHandle;
//Ê¡ÂԵĴúÂë
};
void LiRtspSession::Connect()
{
//create main thread creating rtsp session and receiving rtp/rtcp packet
int ret = pthread_create(&m_hProcHandle, NULL, MainThreadFunc, this);
if(ret != 0)
{
return;
}
//create a thread receiving audio data
if(m_bAudioEnabled && m_eProtoType == ptUDP);
{
ret = pthread_create(&m_hAudioProcHandle, NULL, AudioProcThreadFunc, this);
if(ret != 0)
{
return;
}
}
pthread_join(m_hProcHandle, NULL);
if(m_bAudioEnabled && m_eProtoType == ptUDP);
{
pthread_join(m_hAudioProcHandle, NULL);
}
}
µ«ÊÇÔÚ±àÒëʱȴ³öÏÖÈçÏ´íÎó£º
LiRtspSession.cpp: In member function ‘void LiRtspSession::Connect()’:
LiRtspSession.cpp:176: error: argume
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1 ¸ÅÄî
¹ËÃû˼Ò壬¾ÍÊǽ« linux ϵͳ°²×°µ½Òƶ¯Ó²ÅÌ£¬²¢ÇÒÄÜÔÚ¶ą̀²»Í¬µÄµçÄÔÉÏÔËÐÐ —— ÒÆ¶¯Ó²Å̾ÍÊÇÒªÒÆ¶¯×ÅÓÃÂï¡£²»·Á³ÆÖ®Îª portable-linux »ò mobile-linux £¬»òÕß±ðµÄʲôÃû×Ö£¿
2 ÓÃ;
ÎÒÏëµ½ÒÔϼ¸µã——
1.¾È¼±£ºµçÄÔÔÀ´µÄϵͳÒò²¡¶¾»òÆäËüÔÒò²»ÄÜÕý³£Æô¶¯£¬¶øÓÖ¼±ÐèÀïÃæµÄ×ÊÁÏ£¬Õ ......
1.̸µ½linuxµÄÎļþϵͳ£¬ÎÒÃDZØÐë¹Ø×¢/etc/fstabÎļþµÄÄÚÈÝ£»ÔÚlinuxÖеÄËùÓйÒÔØ·ÖÇøºÍÉ豸¶¼ÔÚfstab±í¸ñÖС£
/etc/fstab±í¸ñÖеÄÑ¡ÔñÏî²ÎÊý¶¨ÒåÈçÏ£º
ro or rw
Read only or read write
noauto
Do not respond to mount -a. Used for external devices CDROMs ...
noexec
Executables cannot be started from the ......
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî
binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ
(kernel) ÔÚÄÚ
/boot/grub/menu.lst GRUBÉèÖÃ
/boot/vmlinuz ÄÚºË
......