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

  • 多线IP扫描
    多线程IP扫描程序-multithreaded IP Scan
    2023-07-22 18:00:02下载
    积分:1
  • jrtplib 的最新版本,比较好用的
    jrtplib 的最新版本,比较好用的-jrtplib the latest version, better quality
    2022-07-14 06:42:37下载
    积分:1
  • SOCKET客户端和服务器端序,我们课题组用来做嵌入式开发时的测试,如果嵌入式设备是客户端序,则用此次上载的服务器端序与之连进行测试,反之用客户端...
    SOCKET客户端和服务器端程序,我们课题组用来做嵌入式开发时的网络测试,如果嵌入式设备是客户端程序,则用此次上载的服务器端程序与之连接进行测试,反之用客户端程序连,比较好用。-SOCKET client and server-side process, we used to do embedded development group at the time of network testing, if the embedded device is a client program, then use the upload server-side connection with testing procedures, on the contrary by the client procedures even compare the ease of use.
    2023-08-20 19:55:05下载
    积分:1
  • not restart Windows directly IP address changes
    不重启Windows直接更改IP地址-not restart Windows directly IP address changes
    2022-11-28 11:45:02下载
    积分:1
  • 用C++ Builder 写得发送消息的序源码,希望对你们有用
    用C++ Builder 编写得发送消息的程序源码,希望对你们有用-C++ Builder with the preparation of a source process to send a message to the hope that useful to you
    2022-02-05 03:52:44下载
    积分:1
  • 强大易用的邮件收发客户端,界面很漂亮,功能很齐全,pop收邮件,smtp发邮件。还有openssh加密功能...
    强大易用的邮件收发客户端,界面很漂亮,功能很齐全,pop收邮件,smtp发邮件。还有openssh加密功能-A powerful easy-to-use mail client, the interface is very beautiful, very complete functionality, pop of incoming mail, smtp e-mail. There openssh encryption
    2022-01-26 04:13:14下载
    积分:1
  • Personal Edition is a suite of Web
    网站系统个人版是一套基于.Net + Access(SQL)建站管理系统软件、不依赖于服务商特定空间、不需安装任何空间商组件、独创“网站模板与网站程序完全分离”全新的概念,让网站的模板设计与程序彻底分开、快速搭建网站平台、经过完善设计是专门为中国市场量身定做的一套适合个人、企业、政府和行业网站、内部知识网站、电子商务网站,精心设计的架构与功能体制,为您提供一个安全、高效、全新、快速、优秀的各种网站解决方案。 -Personal Edition is a suite of Web-based systems. Net+ Access (SQL) website appear in the software, not dependent on service provider-specific space, without having to install any space commercial components, original " web site templates and website completely separate program" New The concept, so that the site template design and procedures completely separate web site quickly to build a platform through improved design is tailored specifically for the Chinese market set for individuals, businesses, government and industry sites, internal knowledge sites, e-commerce sites , well-designed structure of the system, to provide you with a safe, efficient, new, fast, excellent variety of web site solutions.
    2022-05-09 13:31:27下载
    积分:1
  • 基于NUCLEUS 操作系统的FTP协议原代码
    基于NUCLEUS 操作系统的FTP协议原代码-FTP
    2022-03-02 12:41:45下载
    积分:1
  • Discuz!2.2f英文正式版论坛代码
    Discuz! 2.2F 简体中文正式版 论坛代码-Discuz! 2.2F English version of the official code Forum
    2022-03-31 00:59:27下载
    积分:1
  • 人民邮电出版社2008
    人民邮电出版社2008-05-01 出版的《JSP网络开发实用工程案例》一书中的论坛管理系统的源代码。-Posts & Telecom Press 2008-05-01 published " JSP network engineering development of practical cases," a forum for the book" s source code management system.
    2022-02-22 13:24:45下载
    积分:1
  • 696516资源总数
  • 106611会员总数
  • 19今日下载