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

资源简介

实现udp群聊

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace CommonUntility
{
    public static class GetLocalIPandName
    {
        public static string getLocalIP()
        {
            string strHostName = ““; 
            strHostName = System.Net.Dns.GetHostName();
            IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
            IPAddress[] addr = ipEntry.AddressList;

            IPAddress ipAddress = IPAddress.Parse(“127.0.0.1“);
            if (addr.Contains(ipAddress))
            {
                return “127.0.0.1“;
            }
            return addr[addr.Length - 1].ToString();
        }

        public static string getLocalName()
        {
            return System.Envi

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

     文件     838697  2012-10-30 21:47  LanChatterApp(Emotion Transfer)\88.rar

     文件       7168  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\bin\Debug\CommonUntility.dll

     文件      19968  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\bin\Debug\CommonUntility.pdb

     文件       3584  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\bin\Debug\Interop.IMAGEOLELib.dll

     文件       3102  2012-10-30 22:02  LanChatterApp(Emotion Transfer)\CommonUntility\CommonUntility.csproj

     文件        846  2012-10-30 23:38  LanChatterApp(Emotion Transfer)\CommonUntility\GetLocalIPandName.cs

     文件        372  2012-10-29 21:05  LanChatterApp(Emotion Transfer)\CommonUntility\MessageModel.cs

     文件       2397  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\CommonUntility.csproj.FileListAbsolute.txt

     文件        561  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\CommonUntility.csproj.ResolveComReference.cache

     文件       7168  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\CommonUntility.dll

     文件      19968  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\CommonUntility.pdb

     文件       3584  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\Interop.IMAGEOLELib.dll

     文件       4608  2012-10-30 21:43  LanChatterApp(Emotion Transfer)\CommonUntility\obj\Debug\Refactor\CommonUntility.dll

     文件       1474  2012-10-30 22:33  LanChatterApp(Emotion Transfer)\CommonUntility\Parse.cs

     文件       1458  2012-10-23 15:43  LanChatterApp(Emotion Transfer)\CommonUntility\Properties\AssemblyInfo.cs

     文件        626  2012-10-23 15:59  LanChatterApp(Emotion Transfer)\CommonUntility\RichTextBoxEx.cs

     文件       1685  2012-10-29 21:08  LanChatterApp(Emotion Transfer)\CommonUntility\SendInfoByIEP.cs

     文件      22528  2012-10-30 21:03  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\ChatRichTextBox.dll

     文件      44544  2012-10-30 21:03  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\ChatRichTextBox.pdb

     文件       7168  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\CommonUntility.dll

     文件      19968  2012-10-31 21:19  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\CommonUntility.pdb

     文件       1810  2007-08-30 22:05  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\0.gif

     文件       1582  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\1.gif

     文件       3716  2008-01-03 16:39  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\10.gif

     文件       1780  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\100.gif

     文件       2443  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\101.gif

     文件       1446  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\102.gif

     文件       2166  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\103.gif

     文件       2169  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\104.gif

     文件       1277  2007-08-30 21:54  LanChatterApp(Emotion Transfer)\LanChatterApp\bin\Debug\Face2\105.gif

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

评论

共有 条评论