登录
首页 » 套接字网络编程 » 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 221
下载积分: 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 个回复

  • A language with delphi realize cable features page to see
    一个用delphi语言编写的实现网页浏缆功能-A language with delphi realize cable features page to see
    2022-05-14 00:14:09下载
    积分:1
  • 服务信息管理系统
    服务信息管理系统- Service information management system management system
    2023-04-29 03:50:03下载
    积分:1
  • ccna做实验用的书,很实用,可以自己连拓扑,配路由
    ccna做实验用的书,很实用,可以自己连拓扑,配路由-experiment to do CCNA book, very useful, can not even topology with routing
    2022-04-29 16:21:17下载
    积分:1
  • 序为PC机与单片机通过RS
    该程序为PC机与单片机通过RS-232串行口通信的PC端程序,含界面设计和串口设置-The program for the PC and MCU through the RS-232 serial port of the PC client communication procedures, including interface design and the serial port settings
    2023-07-08 15:00:02下载
    积分:1
  • Windows上的MUD客户端
    Windows上的MUD客户端程序-Windows MUD customer end procedure
    2023-07-06 00:55:03下载
    积分:1
  • 凌阳 flash 翻车机
    此文件是凌阳的一个节目为倾倒的从所有设备是凌阳的基于 spmp8000 源的来源。
    2022-06-01 19:07:43下载
    积分:1
  • Jmail邮件发送系统
    Jmail邮件发送系统-Jmail mail delivery system
    2022-09-05 15:10:03下载
    积分:1
  • 外国人是kind of超
    老外写的超连接类,功能比较全,类似于HTML的链接,还能自定义提示信息-foreigner was kind of hyper-links, the whole functional comparison, similar to HTML links, but also from the definition of a message
    2022-03-01 18:54:05下载
    积分:1
  • VB图像
    VB图像编辑程序-VB image editing procedures
    2022-07-24 17:12:56下载
    积分:1
  • Wireless Mesh Network is a high
    无线网状网是一种高速率、高容量的多点对多点网络,可把它看成是Ad Hoc网络的简化版本。正如Ad Ho。网络一样,无线网状网中的路由是它的一项关键技术。基于此,本论文对无线网状网的路由协议进行研究。 文中首先介绍了无线网状网的结构,特点以及其发展与现状 其次,分析了Ad hoc网络中各种路由协议的优劣 再次,重点研究了其中的一种动态源路由协议(DSR)的具体实现过程 在DSR的基础上,对其进行改进,提出了一种均衡流量动态源路由协议,对它进行性能分析和仿真。-Wireless Mesh Network is a high-speed, high-capacity multi-point-to-multipoint network, it could be seen as Ad Hoc networks, a simplified version. As the Ad Ho. Networks, wireless mesh routing is a key technology. Based on this, the thesis of the wireless mesh routing protocol research. First, wireless mesh networks, introduced the structure, characteristics and status of its development and secondly, an analysis of Ad hoc network routing protocols in a variety of advantages and disadvantages again, focused on one of the Dynamic Source Routing Protocol (DSR) concrete realization of the process in DSR based on its improvement, a balanced flow of dynamic source routing protocol, its performance analysis and simulation.
    2023-06-24 08:30:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载