误码率测试源程序

误码率测试源程序

ID:38373751

大小:245.50 KB

页数:27页

时间:2019-06-11

误码率测试源程序_第1页
误码率测试源程序_第2页
误码率测试源程序_第3页
误码率测试源程序_第4页
误码率测试源程序_第5页
资源描述:

《误码率测试源程序》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Xml;usingSystem.Threading;usingSystem.Net;usingSystem.Net.Sockets;usingSystem.Globalization;usingSystem.Collections;n

2、amespaceBER{publicpartialclassForm1:Form{delegatevoidWriteToListBox(byte[]data,inttype);delegatevoidUpdateTextBox();delegatevoidUpdateClientMessage(stringmsg);delegatevoiddelegateSetPause();privateintm_nMaxSendCount=0;//设置最大发送数量privatestringm_szSendData="";//发送数据字符串privateintm_iS

3、endDataLength=0;//发送数据长度//TCPServer参数privateTCP_Serverm_TcpServer=newTCP_Server();privatestringm_IP="127.0.0.1";privateintm_nPort=8888;privateintm_nSendDelay=100;privatebyte[]m_bySendData=newbyte[1024];//发送数据缓存privatebyte[]m_byRecvData=newbyte[1024];//接收数据缓存privatebyte[]m_bysend;

4、//发送数据缓存privateUdpClientm_UDPClient;//TCPClient参数privateTcpClientm_TCPClient;privateNetworkStreamm_TCPClientStream;privateboolm_bTCPConnect=false;privateThreadm_SendThread;privateThreadm_ReceiveThread;privateintm_nReceiveTimeOut=500;privateThreadm_DisplayThread;privateboolm_budpE

5、xit=false;privateboolm_bExit=false;privateboolm_bWait=false;privateboolm_bSend=true;privateIPEndPointServerIpEndPoint;privateRandomrandObj=newRandom();27privateboolm_bRandom=false;privateintm_iRandomLen=0;//privateboolm_bInvert=false;privateintm_iInvertIdx=0;privateboolm_bCountEn

6、ough=false;privatestringm_szStartime="";privatestringm_szStoptime="";privateintm_iPlanSendCount=0;privateintm_iSendCount=0;privateintm_iRecvCount=0;privateintm_iCorrectCout=0;privateintm_iErrorCout=0;privateDoublem_dBER=0.0;privateint[]m_onecount={0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,

7、1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,

8、4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。