登录
首页 » 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 188
下载积分: 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 个回复

  • 核心机的图书馆
    kernel machine library
    2023-01-07 12:30:03下载
    积分:1
  • Can be registered, log in, chat and other functions! SQL database used to store...
    可以实现注册,登录,聊天等功能!要用到SQL数据库存储数据!-Can be registered, log in, chat and other functions! SQL database used to store data!
    2022-02-05 10:14:31下载
    积分:1
  • 样品的ftpserver SRC
    一个简单可用的ftp服务器例子程序。 在studio2005下编译,windows x32 平台-a sample ftpserver src
    2023-03-07 14:25:03下载
    积分:1
  • pieces of the LAN computers can have their computer name and IP
    枚据局域网内的计算机,可以得到他们的IP和计算机名-pieces of the LAN computers can have their computer name and IP
    2023-05-27 08:30:04下载
    积分:1
  • omnet++自带的十六个仿真例,omnet++入门必学
    omnet++自带的十六个仿真例程,omnet++入门必学-omnet++ own simulation routine 16, omnet++ entry must learn
    2022-04-26 09:04:48下载
    积分:1
  • 1 首先下载josua
    1 首先下载josua-0.9.2.tar.gz(http://osip.atosc.org/download/deprecated/)和libosip-0.9.2.tar.gz(); 2 将两个文件分别解压缩到/josua文件夹和 bosip文件夹,需要注意解压缩的时候要使用winzip,winrar解压缩会有问题; 3 打开VC++6.0,在文件菜单中打开~ bosip/windows/osipfsm.dsw,(注意:没有先打开VC++,直接打开~ bosip/windows/osipfsm.dsw时候出现了问题?); 4 编译的时候要首先编译osipparser files,再编译osipfsm files(注意:直接编译会出现不能打开osipparser.lib的错误提示);编译后则在文件夹~ bosip/windows/.libs下生成osipfsm.dll,osipfsm.lib和osipparser.dll,osipparser.lib四个库文件; -a first download josua- 0.9.2.tar.gz (http :// osip.atosc.org/download/deprecated /) and l ibosip- 0.9.2.tar.gz (
    2022-03-06 21:17:35下载
    积分:1
  • 网络的相关知识,网络序的写,Socket是连接应用序与网络驱动序的桥梁,Socket在应用序中创建,通过bind与驱动序建立关系。此后,应用序送给...
    网络的相关知识,网络程序的编写,Socket是连接应用程序与网络驱动程序的桥梁,Socket在应用程序中创建,通过bind与驱动程序建立关系。此后,应用程序送给Socket的数据,由Socket交给驱动程序向网络上发送出去。计算机从网络上收到与该Socket绑定的IP+Port相关的数据后,由驱动程序交给Socket,应用程序便可从该Socket中提取接收到的数据。网络应用程序就是这样通过socket进行数据的发送与接收的。TCP与UDP的工作原理与编写过程,如何在程序中链接库文件。一个字符界面的聊天程序。-network of the knowledge, network program, Socket is a link between the application and network drivers for the bridge, Socket in the application process to create, Driving through bind with the procedures established relations. Since then, Socket applications presented data from the socket to the network driver to send out. Computer network received from the socket and bundled IP Port-related data, from driver to Socket, applications from the Socket can extract the data receiver. Web applications is through this socket for data transmission and reception. TCP and UDP Principle and the work of the preparation process, and how to process link libraries. A character based chat program.
    2023-01-29 23:25:03下载
    积分:1
  • 一个功能齐全的浏览器源代码. MICROSOFT FOUNDATION CLASS LIBRARY : BCGControlBar .MICROSOFT FOU
    一个功能齐全的浏览器源代码. MICROSOFT FOUNDATION CLASS LIBRARY : BCGControlBar .MICROSOFT FOUNDATION CLASS LIBRARY : BCGIEDemo.MICROSOFT FOUNDATION CLASS LIBRARY : CustToolBarTest-a fully functional browser source code. MICROSOFT CLASS LIBRARY FOUNDATION : BCGControlBar. MICROSOFT CLASS LIBRARY FOUNDATION : BCGIEDemo.MICROSOFT CLASS LIBRARY FOUNDATION : CustToolBarTest
    2022-08-19 21:25:54下载
    积分:1
  • 网页特效之一:鼠标特效,当鼠标点击前与点击后文字的变化和移开鼠标后的变化...
    网页特效之一:鼠标特效,当鼠标点击前与点击后文字的变化和移开鼠标后的变化-netnew one : the mouse effects when mouse clicks before and after clicking on the text changes and remove the mouse changes
    2022-03-18 06:30:46下载
    积分:1
  • when visiting certain Internet sites, the system will first read remote files to...
    当访问Internet某个站点时,系统首先将远程文件读入到本机Temporary Internet Files文件夹。现在告诉大家一个小技巧可以用VB语言和一个API函数实现判断网页文件是否在IE缓存中。-when visiting certain Internet sites, the system will first read remote files to the machine Temporary Internet Files folder. Now tell us a little techniques can be used VB language and an API function to judge whether the documents for the Web in IE cache.
    2023-07-04 13:40:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载