• 大小: 0.62M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: Socket  c  

资源简介

socket简单实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Windows.Forms;

using System.Net;
using System.Threading;

namespace ChatRoomClient
{
    public partial class FormChatClient : Form
    {
        public FormChatClient()
        {
            InitializeComponent();
        }

        private Thread threadclient = null;//客户端用于接收数据的线程
        private Socket socketClient = null;//客户端用于接收数据的套接字

        private void btnConnect_Click(object sender EventArgs e)
        {
            try
            {
                IPAddress ip = IPAddress.Parse(this.txtServerIp.Text.Trim());
                IPEndPoint point = new IPEndPo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11264  2012-05-21 21:53  聊天室\ChatRoomClient\bin\Debug\ChatRoomClient.exe

     文件      26112  2012-05-21 21:53  聊天室\ChatRoomClient\bin\Debug\ChatRoomClient.pdb

     文件      11600  2012-05-21 21:53  聊天室\ChatRoomClient\bin\Debug\ChatRoomClient.vshost.exe

     文件       3732  2012-05-21 17:24  聊天室\ChatRoomClient\ChatRoomClient.csproj

     文件       3930  2012-05-21 21:52  聊天室\ChatRoomClient\FormChatClient.cs

     文件       6300  2012-05-21 20:24  聊天室\ChatRoomClient\FormChatClient.Designer.cs

     文件       5817  2012-05-21 20:24  聊天室\ChatRoomClient\FormChatClient.resx

     文件        631  2012-05-21 21:53  聊天室\ChatRoomClient\obj\x86\Debug\ChatRoomClient.csproj.FileListAbsolute.txt

     文件      11264  2012-05-21 21:53  聊天室\ChatRoomClient\obj\x86\Debug\ChatRoomClient.exe

     文件        180  2012-05-21 20:31  聊天室\ChatRoomClient\obj\x86\Debug\ChatRoomClient.FormChatClient.resources

     文件      26112  2012-05-21 21:53  聊天室\ChatRoomClient\obj\x86\Debug\ChatRoomClient.pdb

     文件        180  2012-05-21 17:24  聊天室\ChatRoomClient\obj\x86\Debug\ChatRoomClient.Properties.Resources.resources

     文件       6260  2012-05-21 21:53  聊天室\ChatRoomClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        190  2012-05-21 20:31  聊天室\ChatRoomClient\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        506  2012-05-21 20:31  聊天室\ChatRoomClient\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        504  2012-05-21 17:17  聊天室\ChatRoomClient\Program.cs

     文件       1360  2012-05-21 17:16  聊天室\ChatRoomClient\Properties\AssemblyInfo.cs

     文件       2878  2012-05-21 17:16  聊天室\ChatRoomClient\Properties\Resources.Designer.cs

     文件       5612  2012-05-21 17:16  聊天室\ChatRoomClient\Properties\Resources.resx

     文件       1099  2012-05-21 17:16  聊天室\ChatRoomClient\Properties\Settings.Designer.cs

     文件        249  2012-05-21 17:16  聊天室\ChatRoomClient\Properties\Settings.settings

     文件          8  2012-05-21 22:15  聊天室\_ReSharper.聊天室\AspFileDataCache.dat

     文件          4  2012-05-21 22:15  聊天室\_ReSharper.聊天室\BuildscriptCache\.crc

     文件          4  2012-05-21 22:15  聊天室\_ReSharper.聊天室\BuildscriptCache\.version

     文件         56  2012-05-21 22:15  聊天室\_ReSharper.聊天室\BuildscriptCache\4\59c608d0.dat

     文件       2260  2012-05-21 21:55  聊天室\_ReSharper.聊天室\CompletionStatistics\Statistics.dat

     文件          4  2012-05-21 22:15  聊天室\_ReSharper.聊天室\ConditionalNames\.crc

     文件          4  2012-05-21 22:15  聊天室\_ReSharper.聊天室\ConditionalNames\.version

     文件        972  2012-05-21 22:15  聊天室\_ReSharper.聊天室\ConditionalNames\2\74cbf11.dat

     文件          4  2012-05-21 22:15  聊天室\_ReSharper.聊天室\javascriptCache\.crc

............此处省略265个文件信息

评论

共有 条评论