登录
首页 » Windows Socket编程 » Client程序同样分别创建一个TCP socket 和一个UDP socket,首先client使用TCP socket连接TCP Server。 连接成...

Client程序同样分别创建一个TCP socket 和一个UDP socket,首先client使用TCP socket连接TCP Server。 连接成...

于 2023-07-31 发布 文件大小:65.12 kB
0 178
下载积分: 2 下载次数: 1

代码说明:

Client程序同样分别创建一个TCP socket 和一个UDP socket,首先client使用TCP socket连接TCP Server。 连接成功后显示提示信息; 然后client端向TCP Server发送“GET UDP PORT”字符串,Server收到后向client回送自己的UDP Server 端口号(即Client端仅知道TCP Server的端口号而不知道UDP Server的端口号); client在收到UDP Server的端口号后, 为用户显示3个选项: 1.“Get current time(TCP)”服务器时间 2.“Echo Mode(UDP)”回显6 3.“Exit the program”. -Client program also creates a TCP socket, respectively, and a UDP socket, the first client to use TCP socket connection TCP Server. After a successful connection displays a prompt message and then client-side to the TCP Server sends " GET UDP PORT" string, Server receipt back to the client to send their UDP Server port number (ie, Client-side only to know the TCP Server" s UDP port number do not know Server" s port number) client received UDP Server port number, in order to the user three options: 1. " Get current time (TCP)" server time 2. " Echo Mode (UDP)" echo 63. " Exit the program" .

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • an all static pages generated content, the freedom to customize the extension, t...
    1、全静态生成的内容页,扩展名自由定制,自由选择! 2、后台无限管理等级,自由定制,权限自由分配,让你体验真正的多用户管理! 3、无限分类! 4、超自由的的模版设计,内置标签库,让你完全自由的设计网站页面。 5、优秀的网站上传附件管理模块,可以让你的网站最大程度的减少垃圾文件。 6、自带可视化 HTML 编辑器,就像在Word里编辑文章一样。 7、索引页自动分页,成静态文件保存。 8、静态页面多种生成方式,可最大程度的减少页面生成的耗用时间。 9、首页自动生成,自由修改。 10、共享模块采用JS调用,一次编辑,处处使用,同步更新。(可选) access数据库全面优化,修复v1.0 bug N个-an all static pages generated content, the freedom to customize the extension, the freedom of choice! 2, background unlimited management hierarchy, free customization, free distribution of authority and let you experience a true multi-user management! 3, unlimited classification! 4, the ultra-free design templates, built-in labels, so as you complete freedom of design website pages. 5, excellent website upload Annex management module, allows you to the website of the largest reductions in the garbage documents. 6, onboard visual HTML editor, as in Word edit the same article. 7, index page automatic paging, static documents into preservation. 8, static pages generated a variety of ways, the
    2022-08-16 02:17:26下载
    积分:1
  • 能够在windows下实现ping命令,
    能够在windows下实现ping命令, -Able to realize ping command under windows,
    2023-05-11 14:20:03下载
    积分:1
  • 访问邻居邻居
    获取网上邻居【Neighbor】 lIP地址和计算机名之间的转换【Neighbor】 l映射网络驱动器【Neighbor】 l消息发送程序Net Send【Neighbor】 l获取局域网内其他计算机的信息【NeighborInfo】-access online neighbor Neighbor-- lIP address and computer name conversion between the [ Neighbor-- l mapping network drives Neighbor-- l messaging procedures Net Send Neighbor-- l LAN access to other computer information NeighborInfo
    2022-06-12 23:53:48下载
    积分:1
  • 一个简单的vc下tcp服务器端序服务器端的序当有客户提出连接请求时,在端口与客户端进行连接,连接成功后,显示客户IP地址和端口号,并给客户端发送“Hello...
    一个简单的vc下tcp服务器端程序服务器端的程序当有客户提出连接请求时,在端口与客户端进行连接,连接成功后,显示客户IP地址和端口号,并给客户端发送“Hello!I am a server.”字符串。如果发送正确则显示所发送的字节数-Vc under a simple tcp server-side server-side program when connection requests made by the customer, in the port and connect the client to connect successfully, the display client IP address and port number, and to the client to send
    2022-09-21 08:25:03下载
    积分:1
  • winsock文件传送 利用WINSOCK控件实现文件传送
    winsock文件传送 利用WINSOCK控件实现文件传送-winsock for file transmission Implementing file transmission by winsock control
    2023-01-31 04:25:04下载
    积分:1
  • 一个小巧的PHP+mysql的留言板源码,非常简练美观
    一个小巧的PHP+mysql的留言板源码,非常简练美观-A compact PHP+ Mysql message board source code is very concise and beautiful
    2022-03-21 06:01:49下载
    积分:1
  • 8051单片机C语言彻底应用 序 提高篇
    8051单片机C语言彻底应用 程序 提高篇-8051 C language applications that enhance the complete article
    2022-01-23 10:27:35下载
    积分:1
  • 飞天论坛(ftbbs3.5)功能说明: 1、支持UBB,HTML内容辑,支持网络贴图与附件上传等,风格有点像163的论坛. 2、支持二级类...
    飞天论坛(ftbbs3.5)功能说明: 1、支持UBB,HTML内容编辑,支持网络贴图与附件上传等,风格有点像163的论坛. 2、支持二级类别,类别自已可以添加修改。 3、支持背景音乐,不喜欢的可以关闭。 4、本论坛设以简洁高效为目标,所以不适合要求功能花俏、插件多样的使用者; 5、贴子中增加了发布新贴的链接。 6、加入了贴子的版权信息。 7、贴子被修改后有被修改的记录如:修改时间谁修改的。 8、贴子中加入了加锁,与取消加锁功能。 9、新增了自定义头像功能。 10、后台新加入了图片大小、类型、以及网友上传的图片是否要审核的功能。(后台参数设置) 11、投票贴加入了投票开始时间与到期时间。 12、后台用户管理中加入了用户封锁功能。 13、后台用户管理中还加入了图片(附件)上传权限的限制。 14、加入了首页调用功能代码。 15、修复了以前版本的一些bug,同时首页加入了精华与推荐贴链接,以及最后回复人, 开放了编辑器所有功能,后台增加了批最删除功能,数据库也进行了清理.
    2022-05-22 22:22:23下载
    积分:1
  • VC下基于winsock2的原始套接子发送序,含有详细的注释说明,是学习网络的很好的例子...
    VC下基于winsock2的原始套接子发送程序,含有详细的注释说明,是学习网络编程的很好的例子-VC-based Winsock2 sockets son sent the original procedure, which contains detailed notes, learning network programming is a good example
    2022-03-04 12:55:26下载
    积分:1
  • Windows Socket API 使用经验
    Windows Socket API 使用经验-Windows Socket API experience
    2023-08-14 03:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载