登录
首页 » Windows Socket编程 » C2风格的局域网聊天程序,实现局域网中两个Client聊天。这个程序分Server和Client两部分,但是和网上流行的Server与Client聊天不同,它是...

C2风格的局域网聊天程序,实现局域网中两个Client聊天。这个程序分Server和Client两部分,但是和网上流行的Server与Client聊天不同,它是...

于 2022-12-17 发布 文件大小:12.82 MB
0 170
下载积分: 2 下载次数: 1

代码说明:

C2风格的局域网聊天程序,实现局域网中两个Client聊天。这个程序分Server和Client两部分,但是和网上流行的Server与Client聊天不同,它是实现的Client与Client 聊天,Server 仅仅提供消息转发功能,因此执行程序时,首先必须有两台以上的电脑来执行,必须保证两个Client(Client程序是相同的,因此只要复制两个Client就行)在不同的局域网上的电脑,局域网中只要有一个Server就行,通过输入IP以及确认码(其实就是端口号,要保证两个Client的端口号相同,且两个Client的IP地址不同,即不在同一电脑上),就能实现一个Client和另一个Client聊天(当然Server必须运行,且必须按提示输入信息),本程序基于UDP协议,并且利用多线程编程实现了程序的背景音乐(系统的Beep声音必须打开才能听见)以及正常退出功能(点右上角的“差”是非正常退出!),当初设计的时候使得两个Client端口号必须相同,今后会设计出两个Client端口号不同,这样就能在一台机子上执行程序了。 -This program has the function that it can make two Clients communicate on the LAN.The program has Server and Client two parts.However,it is different from the popular CS chat program which has the function of communicating from Server and Client on the web.It makes two Clients chat.The server only be assigned to transmit messenger from one Client to another.So,you should have more than two Computer to run the program,and to ensure that two Clients on the different Computers which is on the same LAN.The LAN has one Server is OK

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 系统连接 网络
    系统连接 网络编程-system linking Network Programming
    2022-09-15 23:45:03下载
    积分:1
  • 该实例通过WinInet接口实现了完整的FTP客户序,其界面类似于CuteFTP 和LeapFTP...
    该实例通过WinInet编程接口实现了完整的FTP客户程序,其界面类似于CuteFTP 和LeapFTP-example through the WinInet Programming Interface a complete FTP client, its user interface is similar to CuteFTP and LeapFTP
    2022-07-26 23:57:56下载
    积分:1
  • / *
    /* This IPv4 example uses the background thread itself to process all packets. You can use example one to send data to the session that s created in this example. */ /* 这个 iPV4 例子用内部线程来处理所有的分组。你可以用例子一来发数据给本例子来进行测试。 例子的中文解释都由hanyuejun添加,有任何疑问请发hanyuejun2006@163.com */-/* This IPv4 example uses the background thread itself to process all packets. You can use example one to send data to the session that s created in this example .*//* example of this iPV4 with internal thread to handle all the packet . You can use the example of one Laifa data for the examples to be tested. Explained by the example of the Chinese hanyuejun add, have any questions please send hanyuejun2006@163.com* /
    2022-01-30 19:18:13下载
    积分:1
  • TCP/IP协议的网络通讯DLL,用于向指定数据站发送数据
    TCP/IP协议的网络通讯DLL,用于向指定数据站发送数据-TCP/IP network communications DLL for the data to the designated stops sending data
    2022-04-11 08:29:04下载
    积分:1
  • 这是一个酒店系统,用Dreamwaver和access数据库做的,包含注册会员、在线预定、介绍酒店房间标准、娱乐设施等功能。...
    这是一个酒店系统,用Dreamwaver和access数据库做的,包含注册会员、在线预定、介绍酒店房间标准、娱乐设施等功能。-This is a hotel system, used to do Dreamwaver and access the database containing registered members, online reservations, hotel rooms introduce standard features such as recreational facilities.
    2022-01-26 06:16:40下载
    积分:1
  • k-均值聚类算法
    ommonly 用于初始化方法是 Forgy 和随机分区。[9] 的 Forgy 方法随机选择 k 意见从数据集,并使用这些作为初始的手段。随机划分方法首先为每个观察值随机分配一个群集,然后前进到更新这一步,因此计算初始的意思,要其质心,cluster 的随机分配点。Forgy 方法倾向于传播的最初的手段,而随机分区把所有的这些数据集的中心附近的酒店。根据 [9] Hamerly et al.随机划分方法是一般首选等 k-调和手段和模糊 k-均值算法。期望最大化和标准 k-均值算法,初始化的 Forgy 方法是可取的。
    2022-12-06 01:25:03下载
    积分:1
  • 一个很具学习性的visualC++源码,希望给各位初学者有一个很好的帮助...
    一个很具学习性的visualC++源码,希望给各位初学者有一个很好的帮助-A study of very visualC++ Source, want to give you a good beginner help
    2022-03-19 17:16:10下载
    积分:1
  • 网络通信序,实现TCP和UDP通信,可互发消息
    网络通信程序,实现TCP和UDP通信,可互发消息-network communication procedures, TCP and UDP communications, updates
    2022-03-18 00:16:57下载
    积分:1
  • Control_Server.rar 监控软件,分客户端,服务器
    Control_Server.rar 监控软件,分客户端,服务器-Control_Server.rar monitoring software, sub-client, server
    2022-02-22 02:42:05下载
    积分:1
  • smtp dynamic library, mail sent to the process of making DLL containing a detail...
    smtp的动态库,邮件发送过程中用的动态库,里面有详细的代码,接口简单无需文档,自己研究一下就可以使用了, 性能稳定。-smtp dynamic library, mail sent to the process of making DLL containing a detailed code, simple interface without documents, their study on the use of the stable performance.
    2022-03-24 04:48:23下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载