码迷,mamicode.com
首页 > 其他好文 > 详细

测试,测试

时间:2015-01-17 13:46:59      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

        private void btnStart_Click(object sender, EventArgs e) {
            try {
                ser = TxStart.startServer(int.Parse(textBox_port.Text));
                ser.AcceptString += new TxDelegate<IPEndPoint, string>(acceptString);
                ser.AcceptByte += new TxDelegate<IPEndPoint, byte[]>(acceptBytes);
                ser.Connect += new TxDelegate<IPEndPoint>(connect);
                ser.dateSuccess += new TxDelegate<IPEndPoint>(dateSuccess);
                ser.Disconnection += new TxDelegate<IPEndPoint, string>(disconnection);
                ser.EngineClose += new TxDelegate(engineClose);
                ser.EngineLost += new TxDelegate<string>(engineLost);
                ser.BufferSize = 12048;
                ser.FileLog = "C:\\test.txt";
                ser.StartEngine();
                this.btnStart.Enabled = false;
            } catch (Exception Ex) {
                MessageBox.Show(Ex.Message);
            }

        }

  

<div id="hd_top">
        <div id="hd_top_w"><a href="http://www.cnblogs.com">博客园</a><a href="http://news.cnblogs.com/">新闻</a><a href="http://job.cnblogs.com/">招聘</a><a href="http://zzk.cnblogs.com/">找找看</a><a href="http://kb.cnblogs.com/">知识库</a></div>
    </div>
    <div class="clear"></div>

  

测试,测试

标签:

原文地址:http://www.cnblogs.com/renzhe/p/4230332.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!