Location:
Search - CTcpSocket
Search list
Description: 1、熟悉IPv4/IPv6下Socket编程
2、掌握Socket编程关键技术
3、利用Socket编程实现网络应用
安装ipV6, 在cmd中键入命令:ipv6 install
为网卡配置地址:ipv6 adu 4/fe80::214:38ff:fe12:b8a4
Server端,等待客户端连接它,连接后将文件按块,一块一块的传到客户端
等待客户端连接
CTcpSocket* socket = new CTcpSocket()
将文件大小、文件名信息发送到客户端
接收到客户端发来的确认信息
按块传送文件一个块
收到客户端的ACK,传送下一个文件块
发送结束信息
Client端,输入服务器的地址,连接服务器,连接后将文件按块,一块一块的接收到本地,并对接收到文件大小与服务器传送过来的文件信息做比较,判断文件传输的正确与否。
向服务器连接
保存发送过来的文件大小、文件名信息
按块接收文件一个块
发送的确认信息
收到结束信息
判断传输的正确与否
-1, are familiar with Socket programming under IPv4/IPv6
2, master key technologies Socket Programming
3, using Socket programming network applications
Installation ipV6, in the cmd, type the command: ipv6 install
Address for the network card configuration: ipv6 adu 4/fe80:: 214:38 ff: fe12: b8a4
Server-side, waiting for the client to connect it, the connection will file by blocks, one a client of the spread
waiting for clients to connect
CTcpSocket* socket = new CTcpSocket ()
the file size, file name information is sent to the client
the client receives a confirmation message sent
a block by block transfer files
the client received ACK, send next block of a file
sending end of the message
Client-side, enter the server address, connect to the server, the connection will be the file by block, a reception to a local one, and the server receives the file size to send over the file informat
Platform: |
Size: 2425856 |
Author: zym |
Hits:
Description: Socket编程示例,用CTCPSocket和线程实现的简单聊天软件。-Socket programming examples, with CTCPSocket and thread a simple chat software.
Platform: |
Size: 300032 |
Author: zhurg |
Hits:
Description: LINUX下的网络开发类CTcpSocket,集成服务端与客户端功能-socket api for tcp on linux platform,which has tested in many products design.
Platform: |
Size: 7168 |
Author: bryan |
Hits: