資源簡介
一個服務器,多個客戶端,客戶端登陸后可互相通信
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net.Sockets;
using?System.Net;
using?System.IO;
using?System.Threading;
namespace?SyncChatClient
{
????public?partial?class?MainForm?:?Form
????{
????????private?string?ServerIP;?//IP
????????private?int?port;???//端口
????????private?bool?isExit?=?false;
????????private?TcpClient?client;
????????private?BinaryReader?br;
????????private?BinaryWriter?bw;
????????public?MainForm()
????????{
????????????InitializeComponent();
????????????Random?r?=?new?Random((int)DateTime.Now.Ticks);
????????????txt_UserName.Text?=?“user“?+?r.Next(100?999);
????????????lst_OnlineUser.Hor
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????9527??2011-07-26?16:34??C#實驗1\SyncChatClient\Backup\MainForm.cs
?????文件???????8626??2011-07-26?04:39??C#實驗1\SyncChatClient\Backup\MainForm.Designer.cs
?????文件???????5814??2011-07-26?04:39??C#實驗1\SyncChatClient\Backup\MainForm.resx
?????文件????????498??2011-07-26?03:41??C#實驗1\SyncChatClient\Backup\Program.cs
?????文件???????1378??2011-07-26?03:36??C#實驗1\SyncChatClient\Backup\Properties\AssemblyInfo.cs
?????文件???????2878??2011-07-26?03:36??C#實驗1\SyncChatClient\Backup\Properties\Resources.Designer.cs
?????文件???????5612??2011-07-26?03:36??C#實驗1\SyncChatClient\Backup\Properties\Resources.resx
?????文件???????1099??2011-07-26?03:36??C#實驗1\SyncChatClient\Backup\Properties\Settings.Designer.cs
?????文件????????249??2011-07-26?03:36??C#實驗1\SyncChatClient\Backup\Properties\Settings.settings
?????文件???????3789??2011-07-26?04:33??C#實驗1\SyncChatClient\Backup\SyncChatClient.csproj
?????文件?????????14??2011-07-26?17:44??C#實驗1\SyncChatClient\bin\Debug\ServerIPAndPort.txt
?????文件??????14848??2015-12-22?19:51??C#實驗1\SyncChatClient\bin\Debug\SyncChatClient.exe
?????文件??????34304??2015-12-22?19:51??C#實驗1\SyncChatClient\bin\Debug\SyncChatClient.pdb
?????文件??????21656??2015-12-22?19:55??C#實驗1\SyncChatClient\bin\Debug\SyncChatClient.vshost.exe
?????文件????????490??2013-03-18?17:00??C#實驗1\SyncChatClient\bin\Debug\SyncChatClient.vshost.exe.manifest
?????文件???????9628??2015-12-22?19:50??C#實驗1\SyncChatClient\MainForm.cs
?????文件???????7913??2015-12-22?19:50??C#實驗1\SyncChatClient\MainForm.Designer.cs
?????文件???????5814??2015-12-22?19:50??C#實驗1\SyncChatClient\MainForm.resx
?????文件???????1231??2015-12-22?19:55??C#實驗1\SyncChatClient\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7004??2015-12-22?19:47??C#實驗1\SyncChatClient\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????1877??2015-12-22?19:55??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.csproj.FileListAbsolute.txt
?????文件????????850??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.csproj.GenerateResource.Cache
?????文件???????1759??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.csprojResolveAssemblyReference.cache
?????文件??????14848??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.exe
?????文件????????180??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.MainForm.resources
?????文件??????34304??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.pdb
?????文件????????180??2015-12-22?19:51??C#實驗1\SyncChatClient\obj\Debug\SyncChatClient.Properties.Resources.resources
?????文件???????4608??2015-12-22?19:47??C#實驗1\SyncChatClient\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????498??2011-07-26?03:41??C#實驗1\SyncChatClient\Program.cs
?????文件???????1378??2011-07-26?03:36??C#實驗1\SyncChatClient\Properties\AssemblyInfo.cs
............此處省略71個文件信息
評論
共有 條評論