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

  • 聊天室,是一个,适合初学者学习最好的..
    网络聊天室,是初学者学习网络编程的最好案例-Internet chat rooms, is a network programming for beginners to learn the best case
    2022-04-15 09:56:44下载
    积分:1
  • < 精通Windows Sockets开发
    < 精通Windows Sockets网络开发--基于Visual C++实现>> 一书的全部源代码,包括 多线程下载程序、网络五子棋、在线考试系统等五个项目。每个项目都使用不同的socket模型开发(比如select,基于消息、事件的异步模型,重叠i/o,完成端口),对于初学socket网络编程的朋友有极大帮助、、 -" " Proficient in Windows Sockets network development- based on Visual C++ implementation " " a book full source code, including multi-threaded download, network Gobang, online examination system of five projects. Each item using a different socket model development (such as select, overlapping io, the completion of the port), socket network programming for the beginner friend of great help,,,
    2022-01-31 08:41:13下载
    积分:1
  • 使用IOCP写的可伸缩性的回显服务器,适合入门者
    使用IOCP编写的可伸缩性的回显服务器,适合网络编程入门者-IOCP can be prepared by the use of flexible echo server, network programming for beginners
    2022-07-21 17:40:28下载
    积分:1
  • 一个unix和windows通用的socket函数封装的类
    一个unix和windows通用的socket函数封装的类-A class which is encapulated by common socket functions and can be used in unix and windows.
    2022-04-26 10:32:30下载
    积分:1
  • 基于Indy的聊天
    基于Indy的网络聊天-based on the Internet chat Indy
    2022-05-10 11:09:06下载
    积分:1
  • 用jsp写的留言本,数据库采用的是mysql
    用jsp编写的留言本,数据库采用的是mysql -with the preparation of messages, the database using the mysql
    2022-12-04 01:55:03下载
    积分:1
  • University of Carnegie ssd8Exercise2 Meilong answer
    卡耐基梅陇大学ssd8Exercise2答案-University of Carnegie ssd8Exercise2 Meilong answer
    2022-12-16 19:30:03下载
    积分:1
  • 1)用户界面模块负责响应用户的键盘鼠标输入设置服务器的各个参数,显示服务器的工作状态以及错误提示,为用户提供标准的Windows界面。 2)帐户管理模块负责设置...
    1)用户界面模块负责响应用户的键盘鼠标输入设置服务器的各个参数,显示服务器的工作状态以及错误提示,为用户提供标准的Windows界面。 2)帐户管理模块负责设置用户的访问权限,用户登陆后的根目录,并提供对用户透明的虚拟目录服务。同时还为别的模块提供查询文件(夹)的权限,查找本地文件是否存在等服务, 3)连接监听与FTP命令处理模块负责监听客户端的连接,并负责关闭阻塞的连接,释放每个连接占用的资源。此模块为FTP协议的核心,它具体负责FTP命令的解析与实现。 4)客户数据传输模块负责具体的与客户端的数据传输,包括文件的上传,下载,传输文件目录列表等。-1) user interface module for the user response to keyboard and mouse input settings server parameters, display server status and the error messages to users with standard Windows interface. 2) module responsible for the account management of user access rights, user landing after the root directory, and provide transparent to users of virtual directory services. Also for the other modules provide access to files (folders), the authority that you document the existence of local services, 3) connect with the FTP eavesdropping order processing module is responsible for monitoring client connectivity, and is responsible for the closure of the connecting block, the release of each link the resource. This FTP protocol
    2022-11-07 14:35:03下载
    积分:1
  • webSocket传输
    用C#实现:利用摄像头进行录像和拍照等功能
    2022-05-12 16:07:03下载
    积分:1
  • This procedure is a learning network programming and interface design, the best...
    本程序是学习网络编程和界面设计的最好例子 看一下吧-This procedure is a learning network programming and interface design, the best example of a look at it
    2023-05-03 18:55:03下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载