• 大小: 0.15M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 通信  

资源简介

一个服务器,多个客户端,客户端登陆后可互相通信

资源截图

代码片段和文件信息

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个文件信息

评论

共有 条评论