-
IE中的树型选项控件
IE中的树型选项控件-IE chandeliers control options
- 2022-04-17 01:47:24下载
- 积分:1
-
c++ Builder中的异常处理
c++ Builder中的异常处理-Exceptions
- 2022-03-05 10:20:38下载
- 积分:1
-
在C++的内存泄漏检测器
Memory leak detector in c-Memory leak detector in c++
- 2022-03-13 05:24:35下载
- 积分:1
-
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大...
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大家可以在本机上测试,自己传文件给自己)。所以,我们在程序中需要使用两个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
-
c语言猜数字游戏,很适合初学者,很好的程序
c语言猜数字游戏,很适合初学者,很好的程序-c language猜数字game, it is suitable for beginners
- 2022-02-05 05:29:22下载
- 积分:1
-
关于下载系统的源代码
关于下载系统的源代码-source code of download system
- 2022-03-07 06:48:25下载
- 积分:1
-
zhanyue.....wokao...
斩月函数的应用 我靠 上载个东东这么麻烦啊-zhanyue.....wokao...
- 2023-07-05 20:25:03下载
- 积分:1
-
自己做的个电影文件浏览器,初学者可研究
自己做的个电影文件浏览器,初学者可研究
-Make their own film of the file browser, beginners will be able to examine
- 2023-07-16 07:30:03下载
- 积分:1
-
1时间函数举例4,一个猜数游戏,判断一个人反应快慢。
2有两个磁盘文件A和B,各存放一行字母,要求把这两个文件中的信息合并(按字母顺序排列)输出到一个新文件...
1时间函数举例4,一个猜数游戏,判断一个人反应快慢。
2有两个磁盘文件A和B,各存放一行字母,要求把这两个文件中的信息合并(按字母顺序排列)输出到一个新文件C中。-A function of time, for example 4, a guess the number of games, judge a person reaction speed. 2 There are two disk files A and B, the storage of his letters, these two documents requested information in the merger (in alphabetical order) output to a new file in C.
- 2022-02-05 20:30:00下载
- 积分:1
-
rapid implementation of arbitrary document and can be set up as a toolbox, the m...
快速的执行任意的文件
并集合起来可以当做 工具箱 ,媒体箱 等-rapid implementation of arbitrary document and can be set up as a toolbox, the media bins
- 2022-08-20 08:14:21下载
- 积分:1