登录
首页 » 套接字网络编程 » Linux下socket即时通讯代码,无界面

Linux下socket即时通讯代码,无界面

于 2022-07-11 发布 文件大小:2.40 kB
0 141
下载积分: 2 下载次数: 1

代码说明:

Linux下利用socket套接字客户端和服务器的工作流程,编写的一个聊天室。能在一个房间里和其他人聊天,并显示房间号、时间和ip地址。

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

发表评论

0 个回复

  • completed an example of the server and client simple oral communication process....
    该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装TCP/IP协议,并设定IP.服务器端和客户端使用同一台主机的不同端口号,服务器端使用的端口号为2000,客户端使用的端口号为3000. 服务器端程序先运行,首先初始化Winsock,然后创建套接字,在2000端口上进行绑定,接着在2000端口进行侦听,并进入等待状态.客户端后运行,同样首先初始化winsock,然后创建套接字,接着尝试和服务器端的连接.连接一旦建立,就可以在服务器端和客户端之间进行通信.客户端提示输入一个数字,比如输入50,那么客户端会从"data0"到"data49"发送50个字符串,输入0退出.-completed an example of the server and client simple oral communication process. Asked on the mainframe installed TCP/IP protocol and set the IP. Servers and clients using the same host of different ports, the use of the server port to 2000, clients use the port number as 3000. server operating procedures first, the first initialization Winsock, and then create socket, in 2000 ports on bonding, then the 2000 port for the interception, and entered the wait state. client after running the same protocols of the first initialization, and then create socket, and then try to server connections. connecting once established, can the server and client communications between. the client suggested the import
    2022-01-26 06:53:43下载
    积分:1
  • School Management website source, function better source. Download trials under
    学校管理网站源码,功能较好的源码.下载试用下-School Management website source, function better source. Download trials under
    2022-11-22 23:35:04下载
    积分:1
  • C # FTP客户端库
    FTP client library for C#
    2022-12-04 14:55:03下载
    积分:1
  • ,入门书籍,供者从入门、掌握、熟悉的一本好书籍。...
    网络编程,入门书籍,供网络编者从入门、掌握、熟悉的一本好书籍。-Network programming, book entry for the network from entry editor, master, familiar with a good book.
    2022-03-04 19:54:55下载
    积分:1
  • 用于在ns2下仿真局域的脚本文件,里面有详细的设置步骤
    用于在ns2下仿真局域网的脚本文件,里面有详细的设置步骤-can be used to simulate the LAN in the NS2
    2023-05-09 09:00:03下载
    积分:1
  • VB版本的迅雷,直可以译运行!!!还要二十个啊!
    VB版本的迅雷,直接可以编译运行!!!还要二十个字啊!-VB version of the Thunder, you can compile directly to run! ! ! Also 20 characters ah!
    2022-07-14 05:23:51下载
    积分:1
  • 漂亮的alert想用的话,在你的js代码中加上new AUIAlert()
    漂亮的alert想用的话,在你的js代码中加上new AUIAlert()-Alert would like to use beautiful words, in your js code to add new AUIAlert ()
    2022-04-09 11:36:10下载
    积分:1
  • stun服务器和客户端
    基于C++的简单stun服务器和客户端程序,用于探测客户端与服务器之间的不同NAT类型。Based on c + + simple stun server and the client program, used to detect the different NAT types between client and server.
    2022-01-28 02:54:15下载
    积分:1
  • 一个钩子函数的实现过
    一个钩子函数的实现过程-hook function of a process to achieve
    2022-08-21 18:52:54下载
    积分:1
  • a WinSock with VB chat program.
    一个用WinSock的VB聊天程序.-a WinSock with VB chat program.
    2022-08-19 07:42:12下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载