Example #1
0
		public CsHTTPRequest(TcpClient client, CsHTTPServer Parent) 
		{
			this.client = client;
			this.Parent = Parent;

			this.HTTPResponse.BodySize = 0;
		}
Example #2
0
		private void Start_Click(object sender, System.EventArgs e)
		{
			//
			HTTPServer = new MyServer(Convert.ToInt32(HTTP_PORT.Text),HTTP_FOLDER.Text);
			HTTPServer.Start();
			//
			HTTP_PORT.Enabled = false;
			HTTP_FOLDER.Enabled = false;
			Browse.Enabled = false;
			Start.Enabled = false;
			Suspend.Enabled = true;
			Stop.Enabled = true;
			//
			contextMenu.MenuItems[3].Enabled = false;
			contextMenu.MenuItems[4].Enabled = true;
			contextMenu.MenuItems[5].Enabled = true;
		}