亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? form1.cs

?? 網(wǎng)絡(luò)聊天,寫的比較簡(jiǎn)單,但比較容易看懂,別的就不用說了吧
?? CS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;

namespace CSharp.Mok.WinSocket
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.ListBox listBox1;
		private System.Windows.Forms.TextBox txtIP;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;

		//My own Var
        private WSocket mySoc;
		private WSocket [] SocClient;
		private System.Windows.Forms.Label label5;
		private WSocket ListenSoc;
		private Thread serverThread;
		private int nSocRef;
		private System.Windows.Forms.Label txtSoc;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		private const int MAX_SOCKET= 100;
		private System.Windows.Forms.TextBox txtPort;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.TextBox txtCPort;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label txtClose; 
		public static ManualResetEvent allDone = new ManualResetEvent(false);
		private System.Windows.Forms.TextBox txtFileName;
		private System.Windows.Forms.OpenFileDialog openFile;
		private System.Windows.Forms.Button butFileName;
		private System.Windows.Forms.Button bSendFile;
		private System.Windows.Forms.ProgressBar prgBar;
		private System.Windows.Forms.Label txtPer;
        
		//Close counter
		private int nClose;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
            nClose =0;
			nSocRef =0;
			SocClient = new WSocket[MAX_SOCKET];
			//serverThread = new Thread(new ThreadStart(startListen));
			//serverThread.Start();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.txtIP = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.txtSoc = new System.Windows.Forms.Label();
			this.listView1 = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.txtPort = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.button4 = new System.Windows.Forms.Button();
			this.txtCPort = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.txtClose = new System.Windows.Forms.Label();
			this.txtFileName = new System.Windows.Forms.TextBox();
			this.openFile = new System.Windows.Forms.OpenFileDialog();
			this.butFileName = new System.Windows.Forms.Button();
			this.bSendFile = new System.Windows.Forms.Button();
			this.prgBar = new System.Windows.Forms.ProgressBar();
			this.txtPer = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.BackColor = System.Drawing.Color.SeaShell;
			this.textBox1.Location = new System.Drawing.Point(8, 24);
			this.textBox1.Multiline = true;
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(224, 88);
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "";
			this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
			// 
			// button1
			// 
			this.button1.BackColor = System.Drawing.Color.SteelBlue;
			this.button1.ForeColor = System.Drawing.SystemColors.HighlightText;
			this.button1.Location = new System.Drawing.Point(10, 246);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(96, 24);
			this.button1.TabIndex = 1;
			this.button1.Text = "Connect";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.BackColor = System.Drawing.Color.SteelBlue;
			this.button2.ForeColor = System.Drawing.SystemColors.HighlightText;
			this.button2.Location = new System.Drawing.Point(138, 246);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(96, 24);
			this.button2.TabIndex = 2;
			this.button2.Text = "Disconnect";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.BackColor = System.Drawing.Color.SteelBlue;
			this.button3.ForeColor = System.Drawing.SystemColors.HighlightText;
			this.button3.Location = new System.Drawing.Point(8, 120);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(224, 24);
			this.button3.TabIndex = 3;
			this.button3.Text = "Send";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// listBox1
			// 
			this.listBox1.BackColor = System.Drawing.Color.AliceBlue;
			this.listBox1.Location = new System.Drawing.Point(240, 24);
			this.listBox1.Name = "listBox1";
			this.listBox1.Size = new System.Drawing.Size(280, 277);
			this.listBox1.TabIndex = 6;
			// 
			// txtIP
			// 
			this.txtIP.BackColor = System.Drawing.Color.SeaShell;
			this.txtIP.Location = new System.Drawing.Point(10, 222);
			this.txtIP.Name = "txtIP";
			this.txtIP.Size = new System.Drawing.Size(144, 20);
			this.txtIP.TabIndex = 7;
			this.txtIP.Text = "";
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.SkyBlue;
			this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label1.ForeColor = System.Drawing.Color.IndianRed;
			this.label1.Location = new System.Drawing.Point(6, 370);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(654, 48);
			this.label1.TabIndex = 8;
			// 
			// label2
			// 
			this.label2.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label2.Location = new System.Drawing.Point(10, 206);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(144, 16);
			this.label2.TabIndex = 9;
			this.label2.Text = "Hostname/Host IP Address";
			// 
			// label3
			// 
			this.label3.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label3.Location = new System.Drawing.Point(8, 8);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(136, 14);
			this.label3.TabIndex = 10;
			this.label3.Text = "Type the Message here";
			// 
			// label4
			// 
			this.label4.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label4.Location = new System.Drawing.Point(240, 8);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(136, 16);
			this.label4.TabIndex = 11;
			this.label4.Text = "Message List";
			// 
			// label5
			// 
			this.label5.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label5.Location = new System.Drawing.Point(528, 8);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(128, 16);
			this.label5.TabIndex = 13;
			this.label5.Text = "Connected User";
			// 
			// txtSoc
			// 
			this.txtSoc.Location = new System.Drawing.Point(10, 278);
			this.txtSoc.Name = "txtSoc";
			this.txtSoc.Size = new System.Drawing.Size(224, 24);
			this.txtSoc.TabIndex = 14;
			// 
			// listView1
			// 
			this.listView1.BackColor = System.Drawing.Color.PowderBlue;
			this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader1,
																						this.columnHeader2,
																						this.columnHeader3});
			this.listView1.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.listView1.FullRowSelect = true;
			this.listView1.Location = new System.Drawing.Point(526, 52);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(136, 248);
			this.listView1.TabIndex = 15;
			this.listView1.View = System.Windows.Forms.View.Details;
			this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "RefNo";
			this.columnHeader1.Width = 20;
			// 
			// columnHeader2
			// 
			this.columnHeader2.Text = "IP";
			// 
			// columnHeader3
			// 
			this.columnHeader3.Text = "Name";
			// 
			// txtPort
			// 
			this.txtPort.Location = new System.Drawing.Point(152, 152);
			this.txtPort.Name = "txtPort";
			this.txtPort.Size = new System.Drawing.Size(80, 20);
			this.txtPort.TabIndex = 16;
			this.txtPort.Text = "998";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(70, 154);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 16);
			this.label6.TabIndex = 17;
			this.label6.Text = "Listen on Port";
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(12, 150);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(52, 20);
			this.button4.TabIndex = 18;
			this.button4.Text = "Listen";
			this.button4.Click += new System.EventHandler(this.button4_Click_1);
			// 
			// txtCPort
			// 
			this.txtCPort.Location = new System.Drawing.Point(160, 222);
			this.txtCPort.Name = "txtCPort";
			this.txtCPort.Size = new System.Drawing.Size(72, 20);
			this.txtCPort.TabIndex = 19;
			this.txtCPort.Text = "999";
			// 
			// label7
			// 
			this.label7.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label7.Location = new System.Drawing.Point(528, 26);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(128, 26);
			this.label7.TabIndex = 20;
			this.label7.Text = "Double click the user to disconnect it";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(162, 208);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(66, 14);
			this.label8.TabIndex = 21;
			this.label8.Text = "Port No";
			// 
			// txtClose
			// 
			this.txtClose.Location = new System.Drawing.Point(16, 178);
			this.txtClose.Name = "txtClose";
			this.txtClose.Size = new System.Drawing.Size(136, 20);
			this.txtClose.TabIndex = 22;
			// 
			// txtFileName
			// 
			this.txtFileName.Location = new System.Drawing.Point(94, 316);
			this.txtFileName.Name = "txtFileName";
			this.txtFileName.Size = new System.Drawing.Size(426, 20);
			this.txtFileName.TabIndex = 23;
			this.txtFileName.Text = "";
			// 
			// butFileName
			// 
			this.butFileName.Location = new System.Drawing.Point(10, 316);
			this.butFileName.Name = "butFileName";
			this.butFileName.Size = new System.Drawing.Size(80, 22);
			this.butFileName.TabIndex = 24;
			this.butFileName.Text = "FileName";
			this.butFileName.Click += new System.EventHandler(this.butFileName_Click);
			// 
			// bSendFile
			// 
			this.bSendFile.Location = new System.Drawing.Point(528, 316);
			this.bSendFile.Name = "bSendFile";
			this.bSendFile.Size = new System.Drawing.Size(128, 22);
			this.bSendFile.TabIndex = 25;
			this.bSendFile.Text = "Send File";
			this.bSendFile.Click += new System.EventHandler(this.bSendFile_Click);
			// 
			// prgBar
			// 
			this.prgBar.Location = new System.Drawing.Point(94, 340);
			this.prgBar.Name = "prgBar";
			this.prgBar.Size = new System.Drawing.Size(426, 23);
			this.prgBar.Step = 1;
			this.prgBar.TabIndex = 26;
			// 
			// txtPer
			// 
			this.txtPer.Location = new System.Drawing.Point(524, 342);
			this.txtPer.Name = "txtPer";
			this.txtPer.Size = new System.Drawing.Size(66, 22);
			this.txtPer.TabIndex = 27;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackColor = System.Drawing.Color.PaleTurquoise;
			this.ClientSize = new System.Drawing.Size(666, 423);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.txtPer,
																		  this.prgBar,
																		  this.bSendFile,
																		  this.butFileName,
																		  this.txtFileName,
																		  this.txtClose,
																		  this.label8,
																		  this.label7,
																		  this.txtCPort,
																		  this.button4,
																		  this.label6,
																		  this.txtPort,
																		  this.listView1,
																		  this.txtSoc,
																		  this.label5,
																		  this.label4,
																		  this.label3,
																		  this.label2,
																		  this.label1,
																		  this.txtIP,
																		  this.listBox1,
																		  this.button3,
																		  this.button2,
																		  this.button1,
																		  this.textBox1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.MaximizeBox = false;
			this.Name = "Form1";
			this.Text = "Socket : Chat";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
			this.Load += new System.EventHandler(this.Form1_Load);
			this.Closed += new System.EventHandler(this.Form1_Closed);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久| 国产一区二区精品久久99| 日韩三级视频中文字幕| eeuss鲁片一区二区三区在线看| 亚洲一区二区三区免费视频| 国产亚洲美州欧州综合国| 欧美日韩视频专区在线播放| 成人激情校园春色| 久久精品国产久精国产爱| 一区二区三区日本| 国产欧美一区在线| 欧美一区二区三区爱爱| 色欲综合视频天天天| 国产综合色在线| 手机精品视频在线观看| √…a在线天堂一区| 久久九九影视网| 日韩欧美久久一区| 欧美特级限制片免费在线观看| 成人福利视频在线| 欧美特级限制片免费在线观看| 国产精品99久久久久久久女警| 日本不卡高清视频| 亚洲图片一区二区| 一区二区三区精密机械公司| 国产精品久久久久久久第一福利| 久久久久久久综合色一本| 日韩视频一区二区三区在线播放| 欧美日韩国产免费一区二区| 欧美中文字幕久久 | 国产美女精品人人做人人爽| 午夜精品一区二区三区免费视频| 一区二区免费看| 亚洲色图.com| 亚洲色欲色欲www| 亚洲男人的天堂在线观看| 自拍偷拍亚洲综合| 自拍偷拍亚洲欧美日韩| 国产精品第五页| 亚洲图片激情小说| 亚洲三级在线观看| 亚洲美女免费视频| 亚洲精品日日夜夜| 亚洲va欧美va国产va天堂影院| 亚洲综合在线免费观看| 亚洲在线观看免费视频| 亚洲高清在线精品| 日本sm残虐另类| 亚洲成a人v欧美综合天堂| 亚洲va欧美va天堂v国产综合| 亚洲欧洲日本在线| 欧美视频你懂的| 韩国欧美一区二区| 国内精品国产成人国产三级粉色| 国产自产2019最新不卡| 国产麻豆精品95视频| 成人精品一区二区三区中文字幕| 成人动漫一区二区在线| 91久久人澡人人添人人爽欧美| 日本乱码高清不卡字幕| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 在线观看视频91| 678五月天丁香亚洲综合网| 日韩一区二区影院| 欧美激情一区在线观看| 亚洲欧美日韩一区| 亚洲bdsm女犯bdsm网站| 久久99久久久久| 不卡一区二区三区四区| 在线亚洲免费视频| 日韩一级视频免费观看在线| 国产亚洲综合av| 中文字幕一区二区三区不卡| 亚洲丶国产丶欧美一区二区三区| 久久成人羞羞网站| 成人国产精品免费网站| 欧美日韩久久一区| 国产亚洲污的网站| 中文字幕在线观看一区| 五月天激情综合网| 国产成a人亚洲| 欧美日韩一区二区三区免费看 | 欧美日韩大陆一区二区| 精品三级在线看| 亚洲色图第一区| 久久精品国产秦先生| 91在线porny国产在线看| 91精品国产91久久久久久最新毛片| 久久久国产一区二区三区四区小说| 一区二区三区.www| 国产麻豆成人传媒免费观看| 欧美午夜电影在线播放| 日本一区二区高清| 日韩黄色小视频| 99久免费精品视频在线观看| 日韩一区二区视频| 一区二区三区日韩精品| 高清不卡在线观看| 日韩免费观看高清完整版| 亚洲色图视频网| 国产剧情一区二区| 宅男在线国产精品| 一区二区三区四区蜜桃| 国产黄色成人av| 欧美大度的电影原声| 一区二区三区国产精华| 成人av网址在线观看| 精品奇米国产一区二区三区| 亚洲成人一区二区在线观看| av高清久久久| 国产丝袜欧美中文另类| 久久成人免费网站| 5858s免费视频成人| 亚洲综合无码一区二区| 成人开心网精品视频| 久久久久久黄色| 麻豆91精品视频| 精品视频一区三区九区| 亚洲精品写真福利| 91丝袜国产在线播放| 国产女人18毛片水真多成人如厕 | 国产精品一区二区你懂的| 欧美猛男男办公室激情| 一区二区三区资源| 一本大道久久a久久综合| 国产精品视频免费看| 国产成人综合在线| 欧美精品一区二区三区高清aⅴ | 亚洲激情自拍偷拍| 99精品国产视频| 国产精品情趣视频| 成人avav在线| 国产精品伦理一区二区| 国产99久久久国产精品潘金网站| 精品国产91乱码一区二区三区| 蜜臀av国产精品久久久久| 欧美一级午夜免费电影| 日韩精品电影一区亚洲| 在线播放91灌醉迷j高跟美女| 亚洲精品网站在线观看| 日本韩国欧美在线| 亚洲国产va精品久久久不卡综合| 欧美伊人久久久久久久久影院 | 久久电影网站中文字幕| 在线不卡一区二区| 日韩国产一二三区| 91精品国产品国语在线不卡| 蜜桃av一区二区三区| 精品人在线二区三区| 国产乱人伦精品一区二区在线观看 | 久久国产成人午夜av影院| 日韩三级视频中文字幕| 韩国三级中文字幕hd久久精品| 久久久久久久久97黄色工厂| 成人黄色小视频| 亚洲最大成人综合| 日韩一区二区不卡| 国产老妇另类xxxxx| 欧美国产综合一区二区| 91福利社在线观看| 美女国产一区二区三区| 国产日韩在线不卡| 欧美中文字幕不卡| 麻豆成人久久精品二区三区小说| 久久这里只有精品视频网| jiyouzz国产精品久久| 亚洲h在线观看| 久久久久99精品一区| 一本在线高清不卡dvd| 男人的j进女人的j一区| 国产精品私人影院| 欧美精品欧美精品系列| 高清成人免费视频| 亚洲国产精品久久久久秋霞影院 | 亚洲人妖av一区二区| 欧美精品 国产精品| 国产成人亚洲精品青草天美| 亚洲久草在线视频| 日韩欧美国产综合一区 | 日韩理论片网站| 91精品国产一区二区三区香蕉| 国产成人aaa| 亚洲成a天堂v人片| 国产欧美一区二区在线| 欧美日韩精品一区二区天天拍小说| 国精产品一区一区三区mba视频| 亚洲精品videosex极品| 久久精品一区八戒影视| 欧美日韩大陆在线| 99这里只有精品| 韩国三级电影一区二区| 亚洲午夜一二三区视频| 中文字幕免费不卡| 欧美一区二区三级| 色婷婷精品大视频在线蜜桃视频| 九九视频精品免费| 午夜激情综合网| 亚洲色图一区二区| 久久精品在线免费观看| 91精品国产黑色紧身裤美女|