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

  • miniupnpc.c
    $Id: Changelog.txt,v 1.95 2009/10/30 09:18:18 nanard Exp $ miniUPnP client Changelog. VERSION 1.4 : released 2009/10/30 2009/10/16:   using Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS in python module. 2009/10/10:   Some fixes for compilation under Solaris   compilation fixes : http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=1464
    2022-05-12 14:05:30下载
    积分:1
  • VB Socket控件
    VB socket控件,支持中文,运行稳定,暂时没有发现BUG,可以替换vb6.0自带的WinSocket控件,这个控件是VB6.0的间,vb.net不能使用
    2023-03-05 00:00:04下载
    积分:1
  • C++ 卷2 运用ACE和模式消除复杂性
    C++网络编程 卷2 运用ACE和模式消除复杂性-ACE资料
    2023-03-31 09:10:05下载
    积分:1
  • listen to what are they talking,窃听源码
    listen to what are they talking,窃听源码-listen to what are they talking, eavesdropping source
    2023-07-09 09:05:03下载
    积分:1
  • 使用多任务处理的数据传输
    这个项目是关于客户端/服务器多线程的 socket 类。该线程是可选的因为开发人员仍然是 负责决定是否需要它。有其他的套接字类在这里和其他地方在互联网,但是没有 他们可以提供反馈 (事件检测) 到您的应用程序这一一样。它为您提供 以下事件检测: 建立连接,连接已断开、 连接失败和数据接收 (包括 0 字节的数据包)。数据传输、 数字传输、 或数字通信是进行的实物转让 在点对点或点对多点的通信信道数据 (数字比特流)。例子 这种渠道是铜线、 光纤、 无线通信信道和存储介质。数据 被表示为一个电磁信号,如电压、 无线电波、 微波、 或红外 信号。
    2022-06-26 03:02:47下载
    积分:1
  • 用来自绘边框窗口
    用来自绘边框窗口-with painted from the window frame
    2022-03-19 22:29:51下载
    积分:1
  • 微软的DHCP服务器实例
    微软的DHCP服务器实例-Microsoft"s DHCP server examples
    2022-10-28 00:35:04下载
    积分:1
  • fat avr sd card
    使用fat支持avr访问sd卡
    2022-01-28 06:30:09下载
    积分:1
  • 中间商经营系统:shuang 爽啊,超好的系统,中间商经营系统
    中间商经营系统:shuang 爽啊,超好的系统,中间商经营系统-Middlemen operating system: shuang爽啊, super good system, middlemen operating system
    2022-02-03 23:49:30下载
    积分:1
  • 计算机(Kurose中文版,高等教育出版社)课件。
    计算机网络(Kurose中文版,高等教育出版社)课件。-Computer Networking (James. F. Kurose,Higher Education Press )PPT.
    2022-07-25 21:38:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载