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

  • 一个很好用的html编辑器。带源码
    一个很好用的html编辑器。带源码- A very easy to use html editor. Belt source code
    2022-04-12 18:44:03下载
    积分:1
  • 文件传输程序几源码
    文件传输程序几源码-file transfer procedures several FOSS
    2022-02-11 17:20:59下载
    积分:1
  • MultiUse COM object that can be used to administer, send and retrieve mail by Sh
    MultiUse COM object that can be used to administer, send and retrieve mail by Shawn Anderson -MultiUse COM object that can be used to administer, send and retrieve mail by Shawn Anderson
    2022-09-18 08:00:03下载
    积分:1
  • telephone dial
    电话拨号程序,直接根据isp提出的rfc3261协议-telephone dial-up procedures, isp directly under the agreement rfc3261
    2022-10-03 05:45:03下载
    积分:1
  • HTTP协议,规定因特网社区的因特网标准路线协议。
    HTTP协议,规定因特网社区的因特网标准路线协议。-HTTP_Protocol
    2022-10-12 17:30:03下载
    积分:1
  • 一个用ASP写的小型管理程序
    一个用ASP写的小型管理程序-an ASP write small management procedures
    2022-03-18 13:33:47下载
    积分:1
  • 客户端 Winsock
    服务器和客户端有不同的行为 ;因此,创建它们的过程是不同的。以下是用于创建流 TCP/IP 服务器和客户端的一般模型。
    2022-02-01 10:35:44下载
    积分:1
  • 向代理服务器发数据的程序,可以通过http代理,vb做的,很难找的哦,我原创.zip...
    向代理服务器发数据的程序,可以通过http代理,vb做的,很难找的哦,我原创.zip-a proxy server to process data, through http agents, vb do, it is difficult to find, um, I originality. Zip
    2022-07-28 03:39:23下载
    积分:1
  • rtmp 源代码
    RTMP(Real Time Messaging Protocol)是专门用来传输音视频数据的流媒体协议,最初由Macromedia 公司创建,后来归Adobe公司所有,是一种私有协议,主要用来联系Flash Player和RtmpServer,如FMS, Red5,  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-06-29 18:26:31下载
    积分:1
  • Delphi网络数据包嗅探器
    应用背景样品:单位umain;接口使用 ;窗口,消息,SysUtils,类,图形,控件,窗体, ;对话框,stdctrls,Winsock,comctrls;const ;max_packet_size = 10000美元;2 ^ / / 16 ;sio_rcvall = 98000001美元; ;wsa_ver = 202美元;max_adapter_name_length  ; ; ; ; ; ; ; ;= 256; ;max_adapter_description_length = 128;max_adapter_address_length  ; ; ; ; ;= 8; ;IPHelper =“很DLL;关键技术型 ;UShort =词; ;页= DWORD; ;time_t = LongInt; ;tipheader =压缩记录 ; ; ;iph_verlen: ; ;函数; ; ; ;/ /âåðñèÿèäëèíàçàãîëîâêà ; ; ;iph_tos: ; ; ; ; ;函数; ; ; ;/ /òèïñåðâèñà ; ; ;iph_length: ; ;UShort; ; ;/ /äëèíàâñåãîïàêåòà ; ; ;iph_id: ; ; ; ; ; ;UShort; ; ;/ /Èäåíòèôèêàöèÿ ; ; ;iph_offset: ; ;UShort; ; ;/ /ôëàãèèñìåùåíèÿ ; ; ;iph_ttl: ; ; ; ; ;函数;
    2022-04-27 14:01:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载