-
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大...
局域网文件传输
为了设计统一和用户操作方便,我们希望将服务端与客户端融合在一起,形成一个程序,这样用户理解起来,更加直观一点(其实这样做也是为了方便调试,大家可以在本机上测试,自己传文件给自己)。所以,我们在程序中需要使用两个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
-
use expressions stack judgment about whether the scratch, including that Stack m...
利用栈判断表达式中左右刮号是否配对出现 包括栈的一些基本操作 如进栈出栈-use expressions stack judgment about whether the scratch, including that Stack matching some basic operations such as stack up into stacks
- 2022-07-23 04:20:22下载
- 积分:1
-
三层架构 图书管理系统
数据库有脚本,可直接运行创建数据库;非常经典的管理系统架构,采用mvc三层程序架构,是初学者入门的决好资料;vs2008可直接打开运行。
- 2023-03-24 19:10:06下载
- 积分:1
-
实现哈弗曼压缩的c源代码,数据结构课程最终的project
实现哈弗曼压缩的c源代码,数据结构课程最终的project.调试可运行.注意使用方法。
- 2022-01-26 06:30:44下载
- 积分:1
-
ASMLIB06汇编源代码
ASMLIB06汇编源代码-ASMLIB06 compile source code
- 2022-07-03 14:18:56下载
- 积分:1
-
vb做的餐卡管理系统,大家看看或许受到启发
vb做的餐卡管理系统,大家看看或许受到启发-vb do meal card management system, we may be inspired to see huh
- 2022-08-08 08:10:58下载
- 积分:1
-
大多数代码样本包括在本CD与微软Visual C++开发的价值。
Most code samples included on this CD were developed with Microsoft Visual C++ version 5.0 and the Microsoft Windows CE Toolkit for Visual C++ version 5.0. The Sspi and Crypto samples were developed with Microsoft Visual C++ version 6.0 and the Microsoft Windows CE Toolkit for Visual C++ 6.0. The code in sample applications is ported for a Handheld PC, but the programming concepts that are presented apply to all Windows CE-based platforms. -Most code samples included on this CD were d eveloped with Microsoft Visual C version 5.0 an d the Microsoft Windows CE Toolkit for Visual C v ersion 5.0. The Sspi and Crypto samples were dev eloped with Microsoft Visual C version 6.0 and t he Microsoft Windows CE Toolkit for Visual C 6.0 . The sample code in applications is ported for a Handheld PC, but the programming concepts that are presente d apply to all Windows CE-based platforms.
- 2022-03-14 22:53:50下载
- 积分:1
-
提供CSocketModel类完整代码:"CSocketModel.zip" 该类是SOCKET通讯综合模型,该类完成后将包装各种SOCKET通讯模式(阻塞se...
提供CSocketModel类完整代码:"CSocketModel.zip" 该类是SOCKET通讯综合模型,该类完成后将包装各种SOCKET通讯模式(阻塞select,异步窗口,异步事件,重叠I/O,完成I/O)等.它可以被各种通讯程序方便采用.尤其是基于SERVER/CLIENT的SERVER程序会提高大幅度性能.如果使用人要完成特定的通讯功能可以从该类继承,增加对线程池的支持功能。-provide complete CSocketModel category code : "CSocketModel.zip" SOCKET is such integrated communications model, such completion, will repackage the mode of communication SOCKET (blocking select, asynchronous window, asynchronous events, overlapping I/O, complete I/O). It can be the species used to facilitate the communication process. based particularly SERVER/CLIENT SERVER the procedures significantly improve performance. If people use to accomplish specific communication from such succession, increasing the pool of threads support.
- 2022-03-23 21:56:34下载
- 积分:1
-
To download a lift above the simulation program and upload a similar product (th...
为了下载上面的一个电梯模拟程序,上传一个同类产品(同学的,认为还可以),但不是同一种语言,希望共同讨论-To download a lift above the simulation program and upload a similar product (the students that can), but not the same language, to discuss
- 2023-08-19 17:40:03下载
- 积分:1
-
Data structure development kit that contains a variety of data structures, as we...
数据结构的开发包,包含各种数据结构,以及一些简单实例,用2005开发。-Data structure development kit that contains a variety of data structures, as well as some simple examples, with 2005 development.
- 2022-03-01 21:19:03下载
- 积分:1