04 2013 档案

d
摘要:1 byte temp[]=new byte[20];//11个tag head,1+1+3+4 2 temp[0]=0x09;//表示视频 3 int length=NalBufUsed-8;//NAL单元的长度 4 int lengthA=length+5+4;//tag的body长度 5 int lengthB=length+20;//tag的总长度... 阅读全文

posted @ 2013-04-23 13:56 为梦飞翔 阅读(239) 评论(0) 推荐(0)

摘要:1 UINT PCClientThread(LPVOID p){ 2 CTCPServerDlg *dlg=(CTCPServerDlg*)AfxGetApp()->GetMainWnd(); 3 SOCKET temp; 4 char buff[1024]; 5 int len=sizeof(SOCKADDR); 6 temp=accept(dlg->m_PCVideoSocket,(sockaddr*)&(dlg->serv),&(len));//接受客户端链接,将此连接分配给一个空闲的客户端socket 7 AfxBeginThread(... 阅读全文

posted @ 2013-04-11 16:34 为梦飞翔 阅读(257) 评论(0) 推荐(0)

d
摘要:1 int cishu=0; 2 if((dataLength)%1020!=0) 3 cishu=(dataLength)/1020+1; 4 else 5 cishu=(dataLength)/1020; 6 for(int i=0;i<cishu;i++){ 7 ... 阅读全文

posted @ 2013-04-09 17:31 为梦飞翔 阅读(204) 评论(0) 推荐(0)

d
摘要:1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:id="@+id/linearLayout1" 3 android:layout_width="fill_parent" 4 android:layout_height="fill_parent" 5 android:orientation="horizontal" > 6 <SurfaceView 7 and 阅读全文

posted @ 2013-04-08 10:39 为梦飞翔 阅读(227) 评论(0) 推荐(0)

导航