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

资源简介


代码片段和文件信息

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

//添加的命名空间引用
using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace AsyncUdpChatExample
{
    public partial class FormAsyncChat : Form
    {
        delegate void AddListBoxItemCallback(string text);
        AddListBoxItemCallback listBoxCallback;
        //使用的接收端口号
        private int port = 8001;
        //接收信息用UdpClient实例
        UdpClient receiveClient;
        IPEndPoint iep;
        String sendMessage;
        public FormAsyncChat()
        {
            InitializeComponent();
            listBoxCallback = new AddListBoxItemCallback(AddListBoxItem);
        }
        

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

     文件       5140  2013-05-18 15:09  Chap6UDP\AsyncUdpChatExample\AsyncUdpChatExample.csproj

     文件        452  2013-05-18 15:09  Chap6UDP\AsyncUdpChatExample\AsyncUdpChatExample.csproj.user

     文件      13824  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\bin\Debug\AsyncUdpChatExample.exe

     文件      38400  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\bin\Debug\AsyncUdpChatExample.pdb

     文件      14328  2010-07-31 14:46  Chap6UDP\AsyncUdpChatExample\bin\Debug\AsyncUdpChatExample.vshost.exe

     文件        490  2007-07-21 01:33  Chap6UDP\AsyncUdpChatExample\bin\Debug\AsyncUdpChatExample.vshost.exe.manifest

     文件      11776  2008-11-30 16:48  Chap6UDP\AsyncUdpChatExample\bin\Debug\UdpChatExample.exe

     文件      44544  2008-11-30 16:48  Chap6UDP\AsyncUdpChatExample\bin\Debug\UdpChatExample.pdb

     文件        490  2007-07-21 01:33  Chap6UDP\AsyncUdpChatExample\bin\Debug\UdpChatExample.vshost.exe.manifest

     文件       7024  2009-07-17 16:37  Chap6UDP\AsyncUdpChatExample\FormAsyncChat.cs

     文件       7056  2009-07-16 22:46  Chap6UDP\AsyncUdpChatExample\FormAsyncChat.Designer.cs

     文件       5814  2009-07-16 22:46  Chap6UDP\AsyncUdpChatExample\FormAsyncChat.resx

     文件       8091  2010-07-31 14:46  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.csproj.FileListAbsolute.txt

     文件        916  2009-07-16 22:49  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.csproj.GenerateResource.Cache

     文件      13824  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.exe

     文件        180  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.FormAsyncChat.resources

     文件      38400  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.pdb

     文件        180  2010-07-16 17:47  Chap6UDP\AsyncUdpChatExample\obj\Debug\AsyncUdpChatExample.Properties.Resources.resources

     文件       5365  2013-05-18 15:09  Chap6UDP\AsyncUdpChatExample\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2013-05-18 15:09  Chap6UDP\AsyncUdpChatExample\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       1190  2008-11-30 16:49  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.csproj.FileListAbsolute.txt

     文件        850  2008-11-29 13:57  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.csproj.GenerateResource.Cache

     文件      11776  2008-11-30 16:48  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.exe

     文件        180  2008-11-29 09:13  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.FormChat.resources

     文件      44544  2008-11-30 16:48  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.pdb

     文件        180  2008-11-29 09:13  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample.Properties.Resources.resources

     文件        845  2006-02-04 11:41  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample1.csproj.GenerateResource.Cache

     文件        180  2006-02-04 11:41  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample1.FormChat.resources

     文件        180  2006-02-04 11:41  Chap6UDP\AsyncUdpChatExample\obj\Debug\UdpChatExample1.Properties.Resources.resources

     文件        320  2006-06-12 04:54  Chap6UDP\AsyncUdpChatExample\obj\UdpChatExample.csproj.FileList.txt

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

评论

共有 条评论