-
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大...
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大家可以在本机上测试,自己传文件给自己)。所以,我们在程序中需要使用两个Winsock控件,一个负责监听,一个负责发送,当发送端连接成功以后,便选择一个待发送的文件(可以是任意二进制文件),接着将文件名和文件字节长度发送给接收端,接收端收到这个消息以后,将文件名和文件长度解析出来,然后通知发送端可以开始发送文件;发送端读到这个消息之后,将文件流以字节的形式发送到接收端,接收端收到后,将二进制流回写,保存成文件即可。这里要注意两点,一个是由于Winsock每次最大传输8K的内容,所以需要将文件分解,每次传输固定数目的字节流,这样发送和接收时都可以根据这个数目来判断文件传输的进程,一旦字节流数目等于文件的大小,就需要关闭相应的文件句柄;另一点是由于我只使用一个Winsock控件接收,接收文本时需要注意要将UNICODE转码,解析成可识别的信息。
-LAN file transfer to uniform design and user convenience, we hope it will end service and client together and form a process so that users understand, a more intuitive 1:00 (in fact, do so in order to facilitate debugging, you can test the machine, its own text- items for himself). Therefore, we need procedures in the use of two Winsock Control, a charge of wiretapping, a charge of this, when the transmitter connects successfully, it will be a choice to send the document (can be arbitrary binary files), will then file names and the
- 2022-04-14 22:25:12下载
- 积分:1
-
TCP / IP数据包
TCP/IP Packet
- 2022-05-22 13:36:49下载
- 积分:1
-
《visual c++6.0实用教程》(杨永国)第7章源代码,自己编写。仅供参考,因为我觉得本书这章漏了一些说明。...
《visual c++6.0实用教程》(杨永国)第7章源代码,自己编写。仅供参考,因为我觉得本书这章漏了一些说明。
- 2022-06-28 11:24:36下载
- 积分:1
-
jproxy共享…可用于计算机之间的数据传输…
jproxy共享。。。可用于两台计算机之间的数据传输。。。
- 2022-04-16 18:07:59下载
- 积分:1
-
A Delphi history manager for self use only.Compiled under Delphi 2007 and VCLSki...
这是本人写的一个简单的Delphi打开历史文件清理软件,现在Delphi 2010已经有了这个功能了,不过如果你机器上装了多个的版本,不妨还是可以做为一个小工具使用的。编译此工程需要Delphi2007及VCLSkin5.4。如果没有vclskin,则打开工程时,可以把Tskindata组件删除。-A Delphi history manager for self use only.Compiled under Delphi 2007 and VCLSkin 5.4 required.If not installed vclskin components just delete TSkinData component.
- 2022-05-27 04:47:47下载
- 积分:1
-
用处:大量的图片收集,名字杂乱,归类时,重新命名工作量大。这个小程序可以进行文件的自动重新命名。大家可以继续完善它。...
用处:大量的图片收集,名字杂乱,归类时,重新命名工作量大。这个小程序可以进行文件的自动重新命名。大家可以继续完善它。-useful : a large collection of photographs and names of types, sorting, re-named the workload. This procedure can be carried out small documents automatically re-naming. We can continue to improve it.
- 2022-08-09 18:24:42下载
- 积分:1
-
This is the VB6 code for Alarm Clock.
This the VB6 code for Alarm Clock.-This is the VB6 code for Alarm Clock.
- 2022-03-19 01:46:47下载
- 积分:1
-
Packaging a baked
EVC环境下封装一个烤屏函数,此函数用于抓取屏幕并保存为位图。-Packaging a baked-screen function, the function used to capture screen and save it as a bitmap.
- 2022-08-15 00:37:20下载
- 积分:1
-
最原始的网卡/.
最原始的网卡/.-The most primitive card /. ////////. . . . . .
- 2022-01-21 06:27:59下载
- 积分:1
-
4 内六角形的单元格
4 内六角形的单元格
- 2023-04-30 03:35:04下载
- 积分:1