今天自己做了一个小软件,取名叫FreeChat
主要的用途是局域网内聊天,主要用到.net  的Socket类.Thread并自己封装了数据包.

下载地址:/Files/BearOcean/FreeChat(Beta).rar

现在作为Beta版发布...也把源代码发出来.我是菜鸟.希望高手不要鄙视.因为是基于.net的,所以至少需要FrameWork1.1

使用说明如下图:

内网聊天工具FreeChat Beta

很简单...在1.0中想添加一些其他的功能.比如允许文件传送,而且觉得输入IP或者计算机名的方式有点麻烦.

原代码如下:

内网聊天工具FreeChat Betausing System;
内网聊天工具FreeChat Beta
using System.Drawing;
内网聊天工具FreeChat Beta
using System.Collections;
内网聊天工具FreeChat Beta
using System.ComponentModel;
内网聊天工具FreeChat Beta
using System.Windows.Forms;
内网聊天工具FreeChat Beta
using System.Data;
内网聊天工具FreeChat Beta
内网聊天工具FreeChat Beta
using System.Net;
内网聊天工具FreeChat Beta
using System.Net.Sockets;
内网聊天工具FreeChat Beta
using System.Text;
内网聊天工具FreeChat Beta
using System.IO;
内网聊天工具FreeChat Beta
using System.Threading;
内网聊天工具FreeChat Beta
内网聊天工具FreeChat Beta
namespace FreeChat

然后是负责储存聊天记录的部分:

 

内网聊天工具FreeChat Betausing System;
内网聊天工具FreeChat Beta
using System.Windows.Forms;
内网聊天工具FreeChat Beta
using System.IO;
内网聊天工具FreeChat Beta
内网聊天工具FreeChat Beta
namespace FreeChat


代码基本上就是这些.1.0肯定会对它进行补全和修改,还有功能添加.

 

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2021-10-10
  • 2021-12-21
  • 2021-10-11
  • 2022-12-23
  • 2021-04-04
  • 2021-12-20
猜你喜欢
  • 2021-11-25
  • 2021-09-30
  • 2021-09-16
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案