登录
首页 » Visual C++ » TCPTest

TCPTest

于 2012-11-08 发布 文件大小:64KB
0 399
下载积分: 1 下载次数: 7

代码说明:

  简单TCP双向通讯例子,实现客户端服务器端的双向通讯。(Simple the TCP bidirectional communication example, to achieve the client server-side two-way communication.)

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

发表评论

0 个回复

  • the4th
    利用socket实现简单文件传输,mfc实现,很简单(Simple file transfer using socket, mfc achieve)
    2013-10-20 15:37:24下载
    积分:1
  • client-server
    多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。 首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。 程序实现的关键步骤: 以TCP协议为例 服务器端: 1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。 客户端: 1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。 (Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate. First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission. The key step program implementation: In TCP protocol as an example Service-Terminal: 1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response. Clients: 1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
    2016-07-11 10:19:07下载
    积分:1
  • DNS-software
    可以查询网络DNS的一个小程序,以运行,无错误,可直接使用(Can the DNS query network a small program to run, no mistake, can use directly)
    2012-02-21 19:58:26下载
    积分:1
  • SendFileClient
    VC++实现类似于QQ文件传输功能的文件发送与接收程序示例,分为服务端和客户端,客户端首次接收数据,将判断文件包大小,数据包中一定包含完整的数据包结构信息,数据不一定完整;读取数据包的大小,包含数据包结构大小和数据大小,之前接收的数据与现在接收的数据能够构成至少一个完整的数据包,文件接收完毕则设置结束标记,若终止的连接,则弹出窗口告诉用户,对方终止了文件传送。   服务端程序是比较简单的,基本是复制文件数据、判断文件是否传递成功、等待对方收受发送任务或取消发送任务,分包继续发送文件等功能(VC++ implementation is similar to QQ file transfer capabilities to send and receive files program examples, divided into server and client, the client receives the first data packet to determine the file size, the packet must contain the complete information packet structure, the data is not must complete reading packet size, including the size and structure of the data packet size, and previously received data received data can now constitute at least one complete packet, the file has been received then set the mark, if the connection is terminated, the pop-up window telling the user, the other party to terminate the file transfer. Server program is relatively simple, basically copying the file data, to determine whether the file transfer is successful, waiting for the other to accept or cancel the sending task sends tasks, subcontractors continue to send files and other functions )
    2014-06-03 13:50:03下载
    积分:1
  • PPowerTalkClient
    功能强大的聊天工具,可以跨网关聊天,并且传送文件(Powerful chat tool, you can chat across the gateway, and transfer files)
    2009-10-18 23:34:40下载
    积分:1
  • ceshi
    实现本地程序从远程服务器下载文件。保存到本地。同时,具备断点续传的功能。可以在下载一部分的情况下,再次下载从断点处继续下载。(Implement a local program to download files a remote server. Saved locally. At the same time, with the functions of HTTP. You can download a part in the case, once again download continue downloading the breakpoint.)
    2016-10-26 18:07:08下载
    积分:1
  • Chat
    在VS2005的编程环境下,利用套接字的编程原理,可以实现网络聊天功能。(On the basic of VS2005, take advantage of the principle of Socket to achieve the ability to communicate online.)
    2014-04-11 09:18:47下载
    积分:1
  • VC++ 五子棋包括版与单机版
    利用C++语言编写的五子棋单机版和网络版的结合,需要的朋友可以下载,里面附有源码,没有夹杂其他平台的纯VC++(The combination of gobang single edition and network version written in C++ language needs friends to download, which contains source code, no pure VC++ mixed with other platforms.)
    2017-12-13 22:19:10下载
    积分:1
  • TimeCorrection
    这个小程序比较实用,可以让你的电脑时间同步世界服务器提供的时间,这可是比较准确的时间哦!源代码在VC6.0下编译通过,程序不管是从学习角度还是使用角度都不错,点一下鼠标你的电脑时间就会自动更正至世界时间。右侧的列表内显示的是提供时间服务的服务器域名,当然你还可以收集更多的时间服务器地址,加入到列表中(This little program is more practical, you can synchronize your computer time world time server, this is the more accurate the time Oh! VC6.0 to compile the source code through the program regardless of the angle from the learning point of view or are good to use, point the mouse to your computer time is automatically corrected to the world time. The list on the right shows the domain name server to provide time service, of course, you can collect more time server address, adding to the list )
    2010-11-25 16:15:07下载
    积分:1
  • sourcenode
    以点为基础,对基于TDMA的adhoc网络进行复用的时隙分配。(Point based on time slots multiplexed TDMA-based adhoc network distribution.)
    2016-03-17 14:03:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载