基于校园服务器和TCP协议的P2P聊天软件含文件传输


本软件仿照QQ设计,界面美观。利用TCP实现了P2P聊天,文件传输和窗口震动。有上线头像变亮,消息弹出窗口提醒。
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using System.IO;
namespace Chat
{
    class  Friend
    {
        public string ID;
        public string IP;
        public bool state;
        public TcpClient client;
        public void set(string id string ip)
        {
            this.ID = id;
            this.IP = ip;
            if (ip != “n“) state = true;
            else state = false;
        }

    }
}

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

     文件        187  2013-12-16 10:11  ChatChatApp.config

     文件         60  2014-01-05 09:48  ChatChatinDebug2011011457friend.txt

     文件         48  2014-01-05 09:49  ChatChatinDebug2011011461friend.txt

     文件    2054656  2014-01-05 09:54  ChatChatinDebugChat.exe

     文件        187  2013-12-16 10:11  ChatChatinDebugChat.exe.config

     文件     144896  2014-01-05 09:54  ChatChatinDebugChat.pdb

     文件      22984  2014-04-11 22:14  ChatChatinDebugChat.vshost.exe

     文件        187  2013-12-16 10:11  ChatChatinDebugChat.vshost.exe.config

     文件        490  2010-03-17 22:39  ChatChatinDebugChat.vshost.exe.manifest

     文件         72  2014-01-04 11:47  ChatChatinRelease20110114442011011457.txt

     文件          0  2014-01-04 11:40  ChatChatinRelease2011011444friend.txt

     文件         61  2014-01-03 11:18  ChatChatinRelease20110114612011011457.txt

     文件         48  2014-01-03 11:17  ChatChatinRelease2011011461friend.txt

     文件    2432512  2014-01-04 18:59  ChatChatinReleaseChat.exe

     文件        187  2013-12-16 10:11  ChatChatinReleaseChat.exe.config

     文件     124416  2014-01-04 18:59  ChatChatinReleaseChat.pdb

     文件      22984  2014-01-05 09:34  ChatChatinReleaseChat.vshost.exe

     文件        187  2013-12-16 10:11  ChatChatinReleaseChat.vshost.exe.config

     文件        490  2010-03-17 22:39  ChatChatinReleaseChat.vshost.exe.manifest

     文件       9888  2014-01-05 09:54  ChatChatChat.csproj

     文件        488  2014-01-05 09:54  ChatChatChat.csproj.user

     文件        559  2013-12-30 16:44  ChatChatClassFriend.cs

     文件        591  2013-12-19 00:11  ChatChatClassProgram.cs

     文件       1545  2014-01-03 01:25  ChatChatClassPubMethod.cs

     文件       1272  2013-12-31 01:51  ChatChatClassSever.cs

     文件        738  2014-01-03 02:11  ChatChatClassUser.cs

     文件      23704  2014-01-04 21:32  ChatChatFormChatForm.cs

     文件      21262  2014-01-05 09:46  ChatChatFormChatForm.Designer.cs

     文件      86977  2014-01-04 21:32  ChatChatFormChatForm.resx

     文件       6085  2014-01-04 16:03  ChatChatFormLoginForm.cs

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)