亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? receivedatagramv3.0.c

?? 這是一個(gè)進(jìn)程通信和手機(jī)數(shù)據(jù)處理程序, 與以前發(fā)的手機(jī)界面一起構(gòu)成一個(gè)簡(jiǎn)單手機(jī)系統(tǒng),是我們做的第一個(gè)版本,供大家一起學(xué)習(xí)
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
					printf("-------Initial Address DWXX of  newData->dwxx is %lX.-------\n",newData->dwxx);					printf("-------Initial Address DWXX of  newData  is %lX.-------\n",newData);					newData->currentMesg = TYPE_OF_DWXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);															printf("tidCount is %d\n",tidCount);

					break;

				case 'T':
										newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->txxx = (TXXX *)malloc(sizeof( TXXX ));
					/**Handle the information of remoting communication.**/

					/* Obtain the id of the source user. */
					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte =  DataGram[9];
					newData->txxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("SRCID is =%lX\n",newData->txxx->srcID);

					/* Obtain the Charcter type of received  message.*/
					if( ( newData->txxx->chType = (DataGram[10] & 0x20)) == 0)
						printf("Chinese.\n");
					else
						printf("Binary.\n");

					/* Obtain the mode of communication */
					if( ( newData->txxx->commType = DataGram[10] & 0x08) == 0)
						printf("The type is communication.\n");
					else
						printf("The type is inquery.\n");

					/* Obtain the secretkey */
					if( ( newData->txxx->isSecretKey = DataGram[10] & 0x04) == 0)
						printf("Not been encrypted.\n");
					else
						printf("Has been encrypted.\n");

					/* Obtain the id of destination user.*/
					firstByte =  DataGram[11];
					secondByte = DataGram[12];
					thirdByte =  DataGram[13];
					newData->txxx->srcID = (long)firstByte*mid*mid+secondByte*mid+thirdByte;

					printf("SRCID is =%lX\n",newData->txxx->srcID);

					/* Obtain the time */
					newData->txxx->hour = DataGram[14];
					newData->txxx->minute = DataGram[15];
					printf(" The time of sending message is:%d,%d\n",newData->txxx->hour,newData->txxx->minute);

					/* Obtain the length of data Content.*/
					firstByte=  DataGram[16];
					secondByte= DataGram[17];
					newData->txxx->contentLen = (long) firstByte*mid + secondByte;

					printf("ContentLen is =%lX\n",newData->txxx->contentLen);


					/* Obtain the actual data of the datagram.*/
					j=18;
					for( i=0;i<newData->txxx->contentLen;i++ )
					{
						(newData->txxx->message)[i]=DataGram[j++];
					}

					/*Test for CN Character Graph.
					initgraph(&gdrive,&gmode,"");

					if((fp=fopen("hzk16","rb"))==NULL)
					{
						printf("cannot open file\n");
						exit(0);
					}
					WriteHzStr( txxx->ContentLen );

					fclose(fp);
					getch();
					closegraph();*/

					/* Obtain the CRC sign */
					newData->txxx->CRC_Sign = DataGram[ DataLen - 2 ];
					if( newData->txxx->CRC_Sign == 0x00 )
						printf("Correct CRC sign!");
					else if( newData->txxx->CRC_Sign == 0x01 )
						printf("Incorrect CRC sign!");					CheckTidCount( );										printf("-------Initial Address TXXX of  newData->txxx is %lX.-------\n",newData->txxx);					printf("-------Initial Address TXXX of  newData is %lX.-------\n",newData);					newData->currentMesg = TYPE_OF_TXXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);					printf("tidCount is %d\n",tidCount);

					break;


				case 'I':										newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->icxx = (ICXX *)malloc(sizeof( ICXX ));
					/**Handle the information on IC card **/

					/* Obtain the id of the source user. */
					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte=  DataGram[9];
					newData->icxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("SRCID is =%lX\n",newData->icxx->srcID);

					/* Obtain the current frame from the message*/
					newData->icxx->frame = DataGram[10];

					printf("Current frame is =%d\n",newData->icxx->frame);

					/* Obtain the BroadcastID */
					firstByte=  DataGram[11];
					secondByte= DataGram[12];
					thirdByte=  DataGram[13];
					newData->icxx->broadcastID = (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("BroadcastID is =%lX\n",newData->icxx->broadcastID);

					/* Obtain the UserCharacter */
					newData->icxx->userCharacter= DataGram[14];

					printf("UserCharacter is =%d\n",newData->icxx->userCharacter);

					/* Obtain the  ServFrequency*/
					firstByte=  DataGram[15];
					secondByte= DataGram[16];
					newData->icxx->servFrequency = (long) firstByte*mid + secondByte;

					printf("ServFrequency is =%d\n",newData->icxx->servFrequency);

					/* Obtain the rank of communication*/
					newData->icxx->commRank = DataGram[17];
					
					if( newData->icxx->commRank>=0 && newData->icxx->commRank<=4)
					printf("The rank of communication is :%d \n",newData->icxx->commRank);

					/* Obtain the need to encrypt */
					newData->icxx->encryptSign = DataGram[18];
					if( newData->icxx->encryptSign == 1)
						printf("It is encrypted user.\n");
					else
						printf("It is not encrypted user.\n");

					/* Obtain the number of underling user*/
					/**/firstByte=  DataGram[19];
					secondByte= DataGram[20];
					newData->icxx->underlingNum = (long) firstByte*mid + secondByte;

					printf("underlingNum is =%lX\n",newData->icxx->underlingNum);					CheckTidCount( );					newData->currentMesg = TYPE_OF_ICXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);						printf("tidCount is %d\n",tidCount);


					break;

				case 'Z':					newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->zjxx = (ZJXX *)malloc(sizeof( ZJXX ));
					/**Handle the information of SelfChecking**/

					/* Obtain the id of the source user. */
					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte=  DataGram[9];
					newData->zjxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("SRCID is =%lX\n",newData->zjxx->srcID);

					/* Obtain the status of IC card*/
					newData->zjxx->icStat= DataGram[10];

					if( newData->zjxx->icStat != 0)
						printf("Error occured in IC card!\n");

					/* Obtain the status of Hardware*/
					newData->zjxx->hardWareStat= DataGram[11];

					if( newData->zjxx->hardWareStat != 0)
						printf("Error occured in HardwareStat!\n");

					/* Obtain the status of electricity quantity*/
					newData->zjxx->elecQuantity= 1.0 / DataGram[12];
					printf("The current electricity quantity is taken up %f.\n",newData->zjxx->elecQuantity);

					/* Obtain the status of enter*/
					newData->zjxx->enterStat= DataGram[13];

					if( newData->zjxx->enterStat == 1)
						printf("Permit to enter in but restrain it!\n");
					else if( newData->zjxx->enterStat == 0)
						printf("Can't enter in without restriction!");

					/* Obtain the status of beam power*/
					newData->zjxx->fstPowerStat= DataGram[14];
					newData->zjxx->secPowerStat= DataGram[15];
					newData->zjxx->thrPowerStat= DataGram[16];
					newData->zjxx->forPowerStat= DataGram[17];
					newData->zjxx->fifPowerStat= DataGram[18];
					newData->zjxx->sixPowerStat= DataGram[19];

					printf("The power of each beam is :%X,%X,%X,%X,%X,%X\n",newData->zjxx->fstPowerStat,newData->zjxx->secPowerStat,newData->zjxx->thrPowerStat,newData->zjxx->forPowerStat,newData->zjxx->fifPowerStat,newData->zjxx->sixPowerStat);					CheckTidCount( );					newData->currentMesg = TYPE_OF_ZJXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);											printf("tidCount is %d\n",tidCount);

					break;

				case 'S':					newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->sjxx = (SJXX *)malloc(sizeof( SJXX ));
					/**Handle the information of BD timer**/

					/* Obtain the id of the source user. */
					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte=  DataGram[9];
					newData->sjxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("srcID is =%lX\n",newData->sjxx->srcID);

					/* Obtain the current precise time */
					firstByte =  DataGram[10];
					secondByte = DataGram[11];
					newData->sjxx->sj.year = firstByte*mid + secondByte;

					newData->sjxx->sj.mon = DataGram[12];
					newData->sjxx->sj.mday = DataGram[13];
					newData->sjxx->sj.hour = DataGram[14];
					newData->sjxx->sj.min = DataGram[15];
					newData->sjxx->sj.sec = DataGram[16];

					printf("The current time is:%ld.%d.%d %d:%d:%d \n",newData->sjxx->sj.year,newData->sjxx->sj.mon,newData->sjxx->sj.mday,newData->sjxx->sj.hour,newData->sjxx->sj.min,newData->sjxx->sj.sec);					CheckTidCount( );					newData->currentMesg = TYPE_OF_SJXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);					printf("tidCount is %d\n",tidCount);


					break; 
				case 'B':					newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->bbxx = (BBXX *)malloc(sizeof( BBXX ));
					/**Handle the information of current version**/

					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte=  DataGram[9];
					newData->bbxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("srcID is =%lX\n",newData->bbxx->srcID);

					j=10;
					for( i=0;i<DataLen-11;i++ )
					{
						newData->bbxx->verInfor[i]=DataGram[j++];
					}					CheckTidCount( );					newData->currentMesg = TYPE_OF_BBXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);						/* 					tidCount--;*/					printf("tidCount is %d\n",tidCount);

					break;

				case 'F':					newData = (NEWDATA *)malloc(sizeof( NEWDATA ));					newData->fkxx = (FKXX *)malloc(sizeof( FKXX ));
					/**Handle the information of feedback**/

					firstByte=  DataGram[7];
					secondByte= DataGram[8];
					thirdByte=  DataGram[9];
					newData->fkxx->srcID= (long) firstByte*mid*mid + secondByte*mid + thirdByte;

					printf("SRCID is =%lX\n",newData->fkxx->srcID);

					newData->fkxx->FeedBackSign = DataGram[10];
					switch( newData->fkxx->FeedBackSign )
					{
					case 0x00:

						printf("Sign for Success!\n");
						j= 11;
						for( i=0; i<4; i++)
						{
							(newData->fkxx->AdditionalINfor)[i]= DataGram[j++];
							printf("%c ",(newData->fkxx->AdditionalINfor)[i]);
						}
						printf("\n");
						break;

					case 0x01:

						j= 11;
						printf("Sign for Failure!\n");
						for( i=0; i<4; i++)
						{
							(newData->fkxx->AdditionalINfor)[i]= DataGram[j++];
							printf("%c ",(newData->fkxx->AdditionalINfor)[i]);
						}
						printf("\n");
						break;

					case 0x02:

						printf("Signal unlocked!\n");
						break;

					case 0x03:

						printf("Low battery power!\n");

						break;

					case 0x04:

						printf("Need to wait to send data!\n");
						(newData->fkxx->AdditionalINfor[0]) = DataGram[11];
						printf("%c ",(newData->fkxx->AdditionalINfor)[0]);

						break;

					case 0x05:

						printf("Error occurred during the process of encryption or Cracking code!\n");

						break;

					case 0x06:

						j= 11;
						printf("CRC error!\n");
						for( i=0; i<4; i++)
						{
							(newData->fkxx->AdditionalINfor)[i]= DataGram[j++];
							printf("%c ",(newData->fkxx->AdditionalINfor)[i]);
						}
						printf("\n");
						break;					

					/* The values of  feedback's sign from 0x09 to 0xA0 are  reserved*/
					/* and the values from 0xA1 to 0xFF have been reserved to be the */
					/* extension   of   the   corporation   at   this   time .       */
					}					CheckTidCount( );					newData->currentMesg = TYPE_OF_FKXX;					newData->myshmPtr = ptr;					//Set_concurrency( tidCount + 1 );      					Pthread_create(&tid_Produce[tidCount],&attr,Produce,(void *)newData);						printf("tidCount is %d\n",tidCount);

					break;

				}
				printf("Reflush previous rightly checkSum : %X  \n",checkSum);
				DataLen=count=0;
				free( DataGram);
				DataGram= NULL;				
			}
			else
			{
				/* Reflush the buffer to wait for next receiving */
				/* because of the wrong result of checking data. */				printf("Reflush previous wrongly checkSum : %X  \n",checkSum);
				checkSum=DataLen=count=0;
				free( DataGram);
				DataGram= NULL;
			}
		}

	 }

}
/*
void WriteHzStr( int num )
{
   int i,x,y;
   x=0,y=0;

   for(i=0;i<num;i+=2)
   {
      WriteHz( (txxx->Message)[i],(txxx->Message)[i+1],x,y);
      x+=16;
      if(x>=640) {y+=16;x=0;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费一区二区三区在线播放| 久久久久久久久岛国免费| 精一区二区三区| 依依成人综合视频| 2021中文字幕一区亚洲| 欧美日本在线看| 波多野结衣中文字幕一区二区三区| 石原莉奈在线亚洲二区| 亚洲精品乱码久久久久久| 国产欧美一区视频| 欧美一二三区在线| 欧美午夜精品一区二区三区| 国产高清成人在线| 久88久久88久久久| 免费在线看成人av| 五月综合激情网| 夜夜嗨av一区二区三区中文字幕| 久久久午夜精品| 日韩精品一区国产麻豆| 欧美人成免费网站| 欧美日韩一区二区在线视频| 色综合久久综合| 99久久精品免费| 风流少妇一区二区| 国产福利精品一区二区| 国产麻豆成人传媒免费观看| 久久精品国产99国产| 蜜桃视频第一区免费观看| 午夜精品久久一牛影视| 亚洲国产中文字幕在线视频综合| 亚洲人成网站在线| 亚洲免费观看视频| 亚洲乱码日产精品bd| 亚洲美女偷拍久久| 亚洲伦理在线精品| 夜夜精品视频一区二区 | 成人深夜福利app| 国产美女av一区二区三区| 国内精品在线播放| 国产在线一区二区| 国产福利91精品一区二区三区| 国产精品538一区二区在线| 国产精品影视在线| 国产凹凸在线观看一区二区| 成人久久18免费网站麻豆| 成人精品小蝌蚪| 99久久精品免费| 在线观看网站黄不卡| 欧美三区在线观看| 日韩三级在线免费观看| 2023国产精华国产精品| 亚洲国产精品av| 亚洲视频一二三区| 天天综合网天天综合色| 天天色天天操综合| 精品一区二区三区在线播放视频 | 中文字幕一区二区三区四区不卡| 国产精品每日更新在线播放网址| 亚洲欧美一区二区视频| 亚洲成va人在线观看| 美腿丝袜一区二区三区| 国产剧情一区二区| 不卡大黄网站免费看| 欧美羞羞免费网站| 亚洲精品在线观看网站| 国产精品美女久久久久久久久久久| 日韩理论电影院| 日韩国产一区二| 国产精品伊人色| 91黄色激情网站| 精品国产露脸精彩对白| 国产精品久久久久久久久免费丝袜 | 国内精品在线播放| 91亚洲精品久久久蜜桃网站 | 中文av字幕一区| 亚洲欧美激情一区二区| 无吗不卡中文字幕| 国产精品一区二区久激情瑜伽| 91国产丝袜在线播放| 日韩欧美你懂的| 亚洲日本一区二区三区| 五月天丁香久久| 国产v综合v亚洲欧| 在线成人小视频| 国产无遮挡一区二区三区毛片日本| 亚洲一区二区三区四区在线观看| 久久99国产精品久久99| 一本色道久久综合亚洲91| 日韩视频免费观看高清完整版| 日韩一区在线免费观看| 精品一区二区三区视频在线观看| 在线免费观看日韩欧美| 国产欧美日韩另类视频免费观看| 亚洲第一会所有码转帖| 国产精品亚洲一区二区三区在线| 欧美日韩成人在线一区| 亚洲欧美怡红院| 国产成人综合在线| 日韩欧美视频一区| 一区二区三区四区精品在线视频| 久久成人免费电影| 欧美精品v国产精品v日韩精品| 国产精品乱人伦| 国产精品综合久久| 日韩欧美一二三区| 亚洲成a人片在线观看中文| 岛国一区二区三区| 精品免费一区二区三区| 日韩精品一级中文字幕精品视频免费观看 | 久久久综合精品| 人人狠狠综合久久亚洲| 在线一区二区三区做爰视频网站| 久久精品无码一区二区三区| 美国欧美日韩国产在线播放| 欧美天堂一区二区三区| 国产精品色在线| 国产成人福利片| 久久蜜臀中文字幕| 久久精品国产色蜜蜜麻豆| 欧美精品粉嫩高潮一区二区| 亚洲一区视频在线观看视频| 97精品电影院| 成人免费一区二区三区视频| 成人中文字幕电影| 亚洲国产精品av| 高潮精品一区videoshd| 国产欧美日韩精品在线| 国产精品一区二区你懂的| 久久蜜臀中文字幕| 国产精品亚洲人在线观看| 久久久久久久久久久99999| 国产综合久久久久久鬼色| 精品国产乱码久久久久久久| 久久99精品国产麻豆不卡| 精品国产一区二区三区忘忧草| 久久精品国产免费| 久久九九久精品国产免费直播| 国产精品一二三四区| 日本一区二区免费在线| 99国产精品国产精品久久| 亚洲免费观看高清完整版在线观看熊| 色偷偷久久人人79超碰人人澡| 一区二区三区中文字幕| 欧美日高清视频| 久久精品久久精品| 国产日韩欧美一区二区三区综合| 国产成人在线视频网址| 亚洲欧洲性图库| 欧美午夜电影网| 免费成人av在线播放| 久久综合九色综合97婷婷| 国产电影精品久久禁18| 亚洲欧美在线另类| 欧美日韩色一区| 精品一区二区三区视频| 国产女主播一区| 在线精品视频一区二区三四| 日本成人中文字幕在线视频| 精品伦理精品一区| 国产 日韩 欧美大片| 亚洲曰韩产成在线| 日韩免费福利电影在线观看| 国产mv日韩mv欧美| 亚洲午夜在线视频| 精品免费日韩av| 色综合久久久久网| 麻豆久久一区二区| 自拍视频在线观看一区二区| 欧美乱妇一区二区三区不卡视频| 老司机免费视频一区二区| 国产日韩精品一区二区三区| 色天使久久综合网天天| 视频一区视频二区中文| 亚洲国产精品ⅴa在线观看| 欧美伊人久久久久久久久影院| 精品一区二区三区在线播放| 亚洲三级免费观看| 日韩一区二区三免费高清| k8久久久一区二区三区| 日欧美一区二区| 中文字幕一区av| 精品国产乱码久久| 欧美性色黄大片| 成人小视频免费观看| 日本视频一区二区| 一色屋精品亚洲香蕉网站| 日韩一区二区三| 色呦呦网站一区| 国产成人精品免费看| 日韩成人免费看| 亚洲精品va在线观看| 国产日韩欧美制服另类| 欧美一卡二卡在线观看| 91在线免费看| 国产精品一区二区视频| 美女视频黄 久久| 亚洲电影一区二区三区| 国产精品久久影院| 久久久精品综合| 6080午夜不卡|