登录
首页 » 套接字网络编程 » completed an example of the server and client simple oral communication process....

completed an example of the server and client simple oral communication process....

于 2022-01-26 发布 文件大小:16.53 kB
0 200
下载积分: 2 下载次数: 1

代码说明:

该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装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

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

发表评论

0 个回复

  • socket.IO-objc.zip
    socket.IO-objc seems more complete and has a better documentation, but I"d also like to know which advantages does AZSocketIO provide to consider if these advantages are important enough for my project to choose one or the other.
    2022-06-28 22:17:55下载
    积分:1
  • 序的流量分析
    一个网络流量分析的完整的程序-a network traffic analysis of the complete set of procedures
    2022-03-03 01:15:29下载
    积分:1
  • 使用asp,自的流量统计小系统,便于日常察看本流量。...
    使用asp,自编的流量统计小系统,便于日常察看本网络流量。 -use asp, directed the flow of small statistical system to facilitate day-to-day look at the network traffic.
    2023-06-26 10:15:03下载
    积分:1
  • 对xml+xsl实现分页排序的改进,使支持对所有数据进行排序 以往见过的利用xml+xsl来实现分页排序的基本都只能本页内排序,而不能对所有数据进行排序,...
    对xml+xsl实现分页排序的改进,使支持对所有数据进行排序 以往见过的利用xml+xsl来实现分页排序的基本都只能本页内排序,而不能对所有数据进行排序,究其原因,简单分析如下: xml+xsl分页原理:在xsl中,遍历节点的时候,可以获取当前节点的位置,而且还能限制显示特定位置的节点,例如有18条记录,可以在xsl中设置只显示第1-6条,也可以设置只显示第7-12条,再配合客户端脚本,就可以动态改变xsl文档中控制显示指定位置节点的属性,从而实现分页(具体见代码)。不过这个有一点就是在xsl中获取的这个位置信息是xml文档中的节点位置,而不是排序后的位置; 同样xml+xsl实现排序原理:xsl可以按照节点的属性来排序,我们可以通过动态改变xsl的相关属性值来达到动态排序的目的。如果两个合起来用,却只能对当前页进行排序。 -right xml xsl achieve Pagination sort of improvement backing the right of all data ranking ever seen in the use of xml xsl order to achieve the basic pagination can only Page Ranking within, but not all right for sorting data and the reason, simple analysis is as follows : Principle xml xsl Pagination : In xsl, traversing nodes, the nodes can access the current location, but will limit revealed specific locations of nodes, for example, 18 records, xsl can be installed in only 1-6 revealed that the first, can also set up only to No. 7-12, Coupled with the client script, it can change the dynamic control xsl docume
    2023-06-11 07:55:02下载
    积分:1
  • trunk实现页访问基于LWIP
    实现tcp的网页访问,可以通过PC机访问,很简单,LWIP,最基本的通信代码,不妨调试一下,看一下基本的通信过程
    2022-03-10 12:52:34下载
    积分:1
  • ssh3框架集成项目
    开发工具:eclipse 环境:jdk1.7以上  功能描述:这个框架集成了struts2 spring hibernate3 前端用的是easyui 数据库是oracle,这个demo实现了简单的权限管理,菜单配给及相应的业务逻辑(实现了增删改查),业务模块实现了邮件的发送,会对一定条件的信息进行邮件发送,并且调用了websocket接口,请大神们指正,谢谢!
    2022-06-15 21:21:52下载
    积分:1
  • 不使用SMTP服务器直发邮件的源代码
    不使用SMTP服务器直接发邮件的源代码-it is the source code of which can send mail without SMTP server.
    2022-01-21 01:13:43下载
    积分:1
  • 计算机――自顶向下方法与Internet特色(中文版)
    计算机网络――自顶向下方法与Internet特色(中文版)-Computer network- top-down methods and Internet features (Chinese Version)
    2022-07-25 08:29:17下载
    积分:1
  • 客户服务器TCP/IP通信序利用WINSOCK
    客户服务器TCP/IP通信程序利用WINSOCK编程-client-server TCP/IP communications programming procedures using Winsock
    2022-03-12 07:42:18下载
    积分:1
  • 集中式服务器的聊天应用
    应用背景多用户聊天应用程序使用Python命令行文件:client.py server.py可以帮助多个用户同时进行交互的应用程序。运行client.py:Python client.py服务器IP地址端口号关键技术关键技术:Python•套接字编程TCP
    2022-02-12 07:33:30下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载