Learn how C # develops the CLIENT,SERVER,C/S architecture program

Source: Internet
Author: User

All along, want to use local remote operation of the server, a bit like a Trojan horse program, but I use here is to achieve rapid build station, convenient management site, control server IIS, Web files.

To develop such a program, first, you need to configure the debugging environment, I choose two computers, one as server, and the other as the client.

As a result, a win2003 is built with VMware as the server

Use the local computer Win07 as the client.

First, the TCP server.

        Private Itxserver ser = null; 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);           }        } 

Programs for developing CLIENT,SERVER,C/S architectures in C #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.