标签:
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