예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //HttpHelper httpHelper = new HttpHelper();
     //HttpItem item = new HttpItem();
     //item.Method = "POST";
     //item.URL = "http://127.0.0.1:7777/dasdasd";
     ////item.URL = "http://www.sufeinet.com/";
     //item.Postdata = "sdadasd";
     //HttpResult result= httpHelper.GetHtml(item);
     //label1.Text = result.Html;
     //tcpClient = new TCPClient();
     //tcpClient.TCPserverIP = "127.0.0.1";
     //tcpClient.TCPserverPort = 7777;
     //tcpClient.SocketConnect();
     net.Connect("127.0.0.1", 8888);
     net.OnConnected += Net_OnConnected;
     net.OnReceived  += Net_OnReceived;
 }