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

  • It provides a base of DICT web service ( similar to DICT rfc2229) and create rel
    It provides a base of DICT web service ( similar to DICT rfc2229) and create relative applications (server side,client side), they are all SOAP based.-It provides a base of DICT web service (similar to DICT rfc2229) and create relative applications (server side, client side), they are all SOAP based.
    2022-03-07 17:08:46下载
    积分:1
  • IP地址监测和端口扫描
    IP地址监测和端口扫描-monitoring IP address and port scanning
    2023-04-23 23:35:03下载
    积分:1
  • 用纯api发送邮件的源序!
    用纯api发送邮件的源程序!-pure source of the email!
    2022-03-12 00:31:40下载
    积分:1
  • 笨狼简易无刷聊天原型
    笨狼简易无刷聊天原型-stupid simple prototype brushless Chat
    2022-02-01 04:36:30下载
    积分: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
  • 功能介绍: 1、全站生成html(可选) 可减轻服务器负载,提高访问速度,更容易被搜索引擎收录,是大中型站点的必然选择。 2、多管理员...
    功能介绍: 1、全站生成html(可选) 可减轻服务器负载,提高访问速度,更容易被搜索引擎收录,是大中型站点的必然选择。 2、多管理员 -functional presentations : one, the station generated html (optional) to reduce server load, increase the speed, more likely to be included search engine, the large and medium-sized site is a natural choice. Two more administrators
    2023-04-23 03:50:04下载
    积分:1
  • snmp up 9
    snmp up 9
    2022-01-22 00:12:24下载
    积分:1
  • TP_Server 客户端
    倾吐程序员 une 应用程序客户端-serveur,il est 座厕 dʼutiliser les 套接字 (disponibles en particulier sous Unix)。本港就业辅导组套接字 fournissent une 接口马虎不得 permet dʼutiliser facilement les protocoles de 运输 TCP et UDP Une 套接字 est simplement 联合国中 de désigner lʼextrémité dʼune 三七, 科特迪瓦 émetteur ou récepteur en lʼassociant à 联合国端口。Une 打开 la 三七 通过 des 套接字恩特雷联合国突客户端 (bidirectionnelle) établie et 联合国 ceux ci peuvent communiquer en utilisant 本港就业辅导组各突 serveur 基元 (读、 写) que 倒 lʼaccès aux fichiers。
    2022-03-24 11:52:45下载
    积分:1
  • RUDP:简单可靠的UDP。
    这是简单可靠的UDP项目(“RUDP”) 该项目由SourceForge.net托管。项目组将其描述为: 面向对象实现了可靠,有序,交通运输在UDP基础上标题为“可靠的UDP”以博瓦,Krivoruchka,和思科系统(1999)互联网草案协议。
    2022-01-28 14:17:36下载
    积分:1
  • 这是一个Flash制作的综合搜索引擎实例! 上面加了个Flash计数器!下载后有Fla源文件,...
    这是一个Flash制作的综合搜索引擎实例! 上面加了个Flash计数器!下载后有Fla源文件,-This a Flash produced by the integrated search engine examples! Above added a counter Flash! After downloading Fla source,
    2022-10-17 16:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载